فهرست منبع

fix cancel issue in Firefox (fix #1490)

Gildas 1 سال پیش
والد
کامیت
791b41c407
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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;
 			}