mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 06:30:53 +03:00
extracted blobSlicer, fixed download cancel tests
This commit is contained in:
@@ -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