Przeglądaj źródła

fix cancel issue in Firefox (fix #1490)

Gildas 1 rok temu
rodzic
commit
791b41c407
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/core/bg/download-util.js

+ 1 - 1
src/core/bg/download-util.js

@@ -86,7 +86,7 @@ async function download(downloadInfo, replacementCharacter) {
 				delete downloadInfo.conflictAction;
 				return download(downloadInfo, replacementCharacter);
 			} else if (errorMessage.includes(ERROR_DOWNLOAD_CANCELED_GECKO)) {
-				return {};
+				return { cancelled: true };
 			} else {
 				throw error;
 			}