移除 ccu game 汉化 (官方已内置)

This commit is contained in:
2023-11-16 21:05:39 +08:00
parent 154fc2515b
commit 79635be514
8 changed files with 91 additions and 113 deletions

View File

@ -104,7 +104,6 @@ function getLocalizationResource(localizationResource, key) {
async function _getJsonData(fileName, { cacheKey = "", version = null } = {}) {
url = "https://ch.citizenwiki.cn/json-files/locales/" + fileName;
const box = await getLocalStorage();
if (cacheKey && cacheKey !== "") {
const localVersion = await getLocalData(`${cacheKey}_version`);
const data = await getLocalData(cacheKey);
@ -124,14 +123,6 @@ async function _getJsonData(fileName, { cacheKey = "", version = null } = {}) {
return data;
}
function getLocalStorage() {
return new Promise((resolve) => {
chrome.storage.local;
resolve();
});
}
function getLocalData(key) {
return new Promise((resolve) => {
chrome.storage.local.get([key], (result) => {