Merge pull request #307 from mozilla/ui
don't show error page on upload cancel
This commit is contained in:
commit
5996bceef7
|
@ -306,6 +306,11 @@ $(document).ready(function() {
|
|||
});
|
||||
})
|
||||
.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);
|
||||
$('#page-one').attr('hidden', true);
|
||||
$('#upload-progress').attr('hidden', true);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue