mirror of
https://github.com/timvisee/send.git
synced 2026-04-18 21:54:11 -04:00
extracted blobSlicer, fixed download cancel tests
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user