extracted blobSlicer, fixed download cancel tests
This commit is contained in:
parent
5483dc2506
commit
5e9e63944b
6 changed files with 58 additions and 58 deletions
|
@ -148,7 +148,7 @@ export default class FileReceiver extends Nanobus {
|
|||
this.state = 'complete';
|
||||
} catch (e) {
|
||||
this.downloadRequest = null;
|
||||
if (e === 'cancelled') {
|
||||
if (e === 'cancelled' || e.message === '400') {
|
||||
throw new Error(0);
|
||||
}
|
||||
throw e;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue