show error page if upload fails
This commit is contained in:
parent
cbd1daca1e
commit
63fe2c7099
3 changed files with 45 additions and 20 deletions
|
@ -51,6 +51,9 @@ class FileSender extends EventEmitter {
|
|||
reader.onload = function(event) {
|
||||
resolve(new Uint8Array(this.result));
|
||||
};
|
||||
reader.onerror = function(event) {
|
||||
reject(event.explicitOriginalTarget.error.name);
|
||||
};
|
||||
})
|
||||
])
|
||||
.then(([secretKey, plaintext]) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue