Skip to content

Commit

Permalink
use CompressionStream API when available
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed Apr 23, 2024
1 parent c3c55d5 commit d91c23e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/demo-create-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
return {
addFile(file, options) {
if (!zipWriter) {
zipWriter = new zip.ZipWriter(new zip.BlobWriter("application/zip"), { bufferedWrite: true, useCompressionStream: false });
zipWriter = new zip.ZipWriter(new zip.BlobWriter("application/zip"), { bufferedWrite: true });
}
return zipWriter.add(file.name, new zip.BlobReader(file), options);
},
Expand Down

0 comments on commit d91c23e

Please sign in to comment.