1
0
Fork 0
mirror of https://github.com/codedread/bitjs synced 2025-10-05 02:19:24 +02:00

For issue #44, remove the need for a pathToBitJS while unarchiving.

This commit is contained in:
Jeff Schiller 2023-12-12 17:18:42 -08:00
parent f71c893f63
commit d557383c9d
3 changed files with 13 additions and 17 deletions

View file

@ -130,6 +130,8 @@ export class Zipper {
*/
start(files, isLastFile) {
return new Promise((resolve, reject) => {
// TODO: Only use Worker if it exists (like decompress).
// TODO: Remove need for pathToBitJS (like decompress).
this.worker_ = new Worker(this.pathToBitJS + `archive/zip.js`);
this.worker_.onerror = (evt) => {
console.log('Worker error: message = ' + evt.message);