mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 14:10:53 +03:00
don't show error page on upload cancel
This commit is contained in:
@@ -306,6 +306,11 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
// err is 0 when coming from a cancel upload event
|
||||||
|
if (err === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// only show error page when the error is anything other than user cancelling the upload
|
||||||
Raven.captureException(err);
|
Raven.captureException(err);
|
||||||
$('#page-one').attr('hidden', true);
|
$('#page-one').attr('hidden', true);
|
||||||
$('#upload-progress').attr('hidden', true);
|
$('#upload-progress').attr('hidden', true);
|
||||||
|
|||||||
2398
package-lock.json
generated
2398
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user