Skip to content

Commit

Permalink
fix detection of CompressionStream implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed May 28, 2024
1 parent 9c06f4f commit 294604c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/zip-writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ async function addFile(zipWriter, name, reader, options) {
zip64DiskNumberStart,
password,
rawPassword,
level: !useCompressionStream && zipWriter.config.CompressionStream === UNDEFINED_VALUE ? 0 : level,
level: !useCompressionStream && (zipWriter.config.CompressionStream === UNDEFINED_VALUE && zipWriter.config.CompressionStreamNative === UNDEFINED_VALUE) ? 0 : level,
useWebWorkers,
encryptionStrength,
extendedTimestamp,
Expand Down

0 comments on commit 294604c

Please sign in to comment.