Skip to content

Commit

Permalink
clone file.encodedName on yield to fix safari+firefox with service wo…
Browse files Browse the repository at this point in the history
…rker
  • Loading branch information
zakstucke authored Apr 18, 2024
1 parent 8c1151b commit 6450aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function* loadFiles(files: ForAwaitable<ZipEntryDescription & Metad
for await (const file of files) {
const flags = flagNameUTF8(file, options.buffersAreUTF8)
yield fileHeader(file, flags)
yield file.encodedName
yield new Uint8Array(file.encodedName)
if (file.isFile) {
yield* fileData(file)
}
Expand Down

0 comments on commit 6450aac

Please sign in to comment.