mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-09 11:45:36 +00:00
got webpack production mode running
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -34,6 +34,7 @@ async function decryptStream(request) {
|
||||
|
||||
const headers = {
|
||||
'Content-Disposition': 'attachment; filename=' + file.filename,
|
||||
'Content-Type': file.type,
|
||||
'Content-Length': file.size
|
||||
};
|
||||
|
||||
@@ -61,6 +62,7 @@ self.onmessage = event => {
|
||||
const info = {
|
||||
keychain: new Keychain(event.data.key),
|
||||
filename: event.data.filename,
|
||||
type: event.data.type,
|
||||
size: event.data.size,
|
||||
progress: 0,
|
||||
cancelled: false
|
||||
|
||||
Reference in New Issue
Block a user