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:
parent
f71c893f63
commit
d557383c9d
3 changed files with 13 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue