got webpack production mode running

This commit is contained in:
Danny Coates 2018-07-13 11:13:09 -07:00
parent 1a78f57515
commit 787d227761
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
7 changed files with 51 additions and 138 deletions

View file

@ -104,6 +104,7 @@ export default class FileReceiver extends Nanobus {
request: 'init',
id: this.fileInfo.id,
filename: this.fileInfo.name,
type: this.fileInfo.type,
key: this.fileInfo.secretKey,
requiresPassword: this.fileInfo.requiresPassword,
password: this.fileInfo.password,
@ -128,7 +129,6 @@ export default class FileReceiver extends Nanobus {
a.href = downloadUrl;
document.body.appendChild(a);
a.click();
URL.revokeObjectURL(downloadUrl);
}
let prog = 0;
@ -139,7 +139,7 @@ export default class FileReceiver extends Nanobus {
});
prog = msg.progress;
onprogress([prog, this.fileInfo.size]);
await delay();
await delay(1000);
}
this.downloadRequest = null;