mirror of
https://github.com/danbulant/pngjs
synced 2026-05-27 05:41:47 +00:00
Fix the falsy 0 options
if you set the options deflateStrategy to 0, it will set 3
This commit is contained in:
parent
4c508c661e
commit
fa9693a42c
1 changed files with 2 additions and 2 deletions
|
|
@ -35,8 +35,8 @@ var Packer = module.exports = function(options) {
|
|||
this._options = options;
|
||||
|
||||
options.deflateChunkSize = options.deflateChunkSize || 32 * 1024;
|
||||
options.deflateLevel = options.deflateLevel || 9;
|
||||
options.deflateStrategy = options.deflateStrategy || 3;
|
||||
options.deflateLevel = options.deflateLevel != null ? options.deflateLevel : 9;
|
||||
options.deflateStrategy = options.deflateStrategy != null ? options.deflateStrategy : 3;
|
||||
|
||||
this.readable = true;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue