瀏覽代碼

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

Gildas 4 年之前
父節點
當前提交
ad6b57186a
共有 4 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      _locales/pl/messages.json
  2. 1 1
      _locales/zh_CN/messages.json
  3. 1 1
      _locales/zh_TW/messages.json
  4. 2 2
      extension/core/bg/autosave.js

+ 1 - 1
_locales/pl/messages.json

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

+ 1 - 1
_locales/zh_CN/messages.json

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

+ 1 - 1
_locales/zh_TW/messages.json

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

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

@@ -166,7 +166,7 @@ async function saveContent(message, tab) {
 				if (options.saveToGDrive) {
 					const blob = new Blob([pageData.content], { type: "text/html" });
 					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;
 				} else if (options.saveWithCompanion) {
 					await companion.save({
@@ -229,4 +229,4 @@ function fetch(url) {
 		xhrRequest.open("GET", url, true);
 		xhrRequest.send();
 	});
-}
+}