mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-10 20:25:34 +00:00
format
This commit is contained in:
@@ -20,9 +20,10 @@ class FileReceiver extends EventEmitter {
|
||||
};
|
||||
|
||||
xhr.onload = function(e) {
|
||||
|
||||
if (xhr.status === 404) {
|
||||
reject(new Error('The file has expired, or has already been deleted.'));
|
||||
reject(
|
||||
new Error('The file has expired, or has already been deleted.')
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -58,8 +59,7 @@ class FileReceiver extends EventEmitter {
|
||||
true,
|
||||
['encrypt', 'decrypt']
|
||||
)
|
||||
])
|
||||
.then(([fdata, key]) => {
|
||||
]).then(([fdata, key]) => {
|
||||
let salt = this.salt;
|
||||
return Promise.all([
|
||||
window.crypto.subtle.decrypt(
|
||||
|
||||
Reference in New Issue
Block a user