|
@@ -49,10 +49,14 @@ singlefile.download = (() => {
|
|
|
}
|
|
}
|
|
|
return downloadPage(message, { confirmFilename: message.confirmFilename, incognito: sender.tab.incognito, conflictAction: message.filenameConflictAction })
|
|
return downloadPage(message, { confirmFilename: message.confirmFilename, incognito: sender.tab.incognito, conflictAction: message.filenameConflictAction })
|
|
|
.catch(error => {
|
|
.catch(error => {
|
|
|
- if (error.message && error.message.includes("'incognito'")) {
|
|
|
|
|
- return downloadPage(message, { confirmFilename: message.confirmFilename, conflictAction: message.filenameConflictAction });
|
|
|
|
|
- } else {
|
|
|
|
|
- return { notSupported: true };
|
|
|
|
|
|
|
+ if (error.message) {
|
|
|
|
|
+ if (!error.message.toLowerCase().includes("canceled")) {
|
|
|
|
|
+ if (error.message.includes("'incognito'")) {
|
|
|
|
|
+ return downloadPage(message, { confirmFilename: message.confirmFilename, conflictAction: message.filenameConflictAction });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return { notSupported: true };
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
} catch (error) {
|
|
} catch (error) {
|