更换服务器地址

This commit is contained in:
xkeyC 2023-12-09 13:04:15 +08:00
parent ea7b587ccf
commit d6192cd165
4 changed files with 4 additions and 4 deletions

View File

@ -108,7 +108,7 @@ function getLocalizationResource(localizationResource, key) {
}
async function _getJsonData(fileName, { cacheKey = "", version = null } = {}) {
url = "https://ch.citizenwiki.cn/json-files/locales/" + fileName;
url = "https://git.sctoolbox.sccsgo.com/SCToolBox/ScWeb_Chinese_Translate/raw/branch/main/json/locales/" + fileName;
if (cacheKey && cacheKey !== "") {
const localVersion = await getLocalData(`${cacheKey}_version`);
const data = await getLocalData(cacheKey);

View File

@ -8,7 +8,7 @@
"192": "icon.png"
},
"host_permissions": [
"*://ch.citizenwiki.cn/"
"*://git.sctoolbox.sccsgo.com/"
],
"permissions": [
"storage"

View File

@ -108,7 +108,7 @@ function getLocalizationResource(localizationResource, key) {
}
async function _getJsonData(fileName, { cacheKey = "", version = null } = {}) {
url = "https://ch.citizenwiki.cn/json-files/locales/" + fileName;
url = "https://git.sctoolbox.sccsgo.com/SCToolBox/ScWeb_Chinese_Translate/raw/branch/main/json/locales/" + fileName;
if (cacheKey && cacheKey !== "") {
const localVersion = await getLocalData(`${cacheKey}_version`);
const data = await getLocalData(cacheKey);

View File

@ -9,7 +9,7 @@
},
"permissions": [
"storage",
"https://ch.citizenwiki.cn/*"
"https://git.sctoolbox.sccsgo.com/*"
],
"browser_action": {
"default_icon": "icon.png",