Skip to content

Commit

Permalink
fix onprogress callback (see #234)
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed Mar 22, 2021
1 parent 0c0f2b7 commit 63d511b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/zip-reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class ZipEntry {
await writer.init();
}
const signal = getOptionValue(zipEntry, options, "signal");
await processData(codec, reader, writer, dataOffset, compressedSize, config, { onprogress, signal });
await processData(codec, reader, writer, dataOffset, compressedSize, config, { onprogress: options.onprogress, signal });
return writer.getData();
}
}
Expand Down

0 comments on commit 63d511b

Please sign in to comment.