Forráskód Böngészése

fixed issue related to the action to take if filename already exists.

Gildas 7 éve
szülő
commit
581c19575e
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      extension/core/bg/download.js

+ 2 - 2
extension/core/bg/download.js

@@ -47,12 +47,12 @@ singlefile.download = (() => {
 			} else if (message.content) {
 			} else if (message.content) {
 				message.url = URL.createObjectURL(new Blob([message.content], { type: "text/html" }));
 				message.url = URL.createObjectURL(new Blob([message.content], { type: "text/html" }));
 			}
 			}
-			return downloadPage(message, { confirmFilename: message.confirmFilename, incognito: sender.tab.incognito, conflictAction: message.filenameConflictAction })
+			return downloadPage(message, { confirmFilename: message.confirmFilename, incognito: sender.tab.incognito, filenameConflictAction: message.filenameConflictAction })
 				.catch(error => {
 				.catch(error => {
 					if (error.message) {
 					if (error.message) {
 						if (!error.message.toLowerCase().includes("canceled")) {
 						if (!error.message.toLowerCase().includes("canceled")) {
 							if (error.message.includes("'incognito'")) {
 							if (error.message.includes("'incognito'")) {
-								return downloadPage(message, { confirmFilename: message.confirmFilename, conflictAction: message.filenameConflictAction });
+								return downloadPage(message, { confirmFilename: message.confirmFilename, filenameConflictAction: message.filenameConflictAction });
 							} else {
 							} else {
 								return { notSupported: true };
 								return { notSupported: true };
 							}
 							}