Selaa lähdekoodia

Merge branch 'master' of github.com:gildas-lormeau/SingleFile

Gildas 4 vuotta sitten
vanhempi
sitoutus
ad6b57186a

+ 1 - 1
_locales/pl/messages.json

@@ -160,7 +160,7 @@
 		"description": "Options page label: 'template of the infobar content'"
 		"description": "Options page label: 'template of the infobar content'"
 	},
 	},
 	"optionBlockMixedContent": {
 	"optionBlockMixedContent": {
-		"message": "block mixed content",
+		"message": "blokuj zawartość mieszaną",
 		"description": "Options page label: 'block mixed content'"
 		"description": "Options page label: 'block mixed content'"
 	},
 	},
 	"optionIncludeInfobar": {
 	"optionIncludeInfobar": {

+ 1 - 1
_locales/zh_CN/messages.json

@@ -160,7 +160,7 @@
 		"description": "Options page label: 'template of the infobar content'"
 		"description": "Options page label: 'template of the infobar content'"
 	},
 	},
 	"optionBlockMixedContent": {
 	"optionBlockMixedContent": {
-		"message": "block mixed content",
+		"message": "拦截混合內容",
 		"description": "Options page label: 'block mixed content'"
 		"description": "Options page label: 'block mixed content'"
 	},
 	},
 	"optionIncludeInfobar": {
 	"optionIncludeInfobar": {

+ 1 - 1
_locales/zh_TW/messages.json

@@ -160,7 +160,7 @@
 		"description": "Options page label: 'template of the infobar content'"
 		"description": "Options page label: 'template of the infobar content'"
 	},
 	},
 	"optionBlockMixedContent": {
 	"optionBlockMixedContent": {
-		"message": "block mixed content",
+		"message": "攔截混合內容",
 		"description": "Options page label: 'block mixed content'"
 		"description": "Options page label: 'block mixed content'"
 	},
 	},
 	"optionIncludeInfobar": {
 	"optionIncludeInfobar": {

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

@@ -166,7 +166,7 @@ async function saveContent(message, tab) {
 				if (options.saveToGDrive) {
 				if (options.saveToGDrive) {
 					const blob = new Blob([pageData.content], { type: "text/html" });
 					const blob = new Blob([pageData.content], { type: "text/html" });
 					await (await downloads.saveToGDrive(message.taskId, pageData.filename, blob, options, {})).uploadPromise;
 					await (await downloads.saveToGDrive(message.taskId, pageData.filename, blob, options, {})).uploadPromise;
-				} if (options.saveToGitHub) {
+				} else if (options.saveToGitHub) {
 					await (await downloads.saveToGitHub(message.taskId, pageData.filename, pageData.content, options.githubToken, options.githubUser, options.githubRepository, options.githubBranch)).pushPromise;
 					await (await downloads.saveToGitHub(message.taskId, pageData.filename, pageData.content, options.githubToken, options.githubUser, options.githubRepository, options.githubBranch)).pushPromise;
 				} else if (options.saveWithCompanion) {
 				} else if (options.saveWithCompanion) {
 					await companion.save({
 					await companion.save({
@@ -229,4 +229,4 @@ function fetch(url) {
 		xhrRequest.open("GET", url, true);
 		xhrRequest.open("GET", url, true);
 		xhrRequest.send();
 		xhrRequest.send();
 	});
 	});
-}
+}