mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/StarCitizenBoxBrowserEx.git
synced 2025-08-01 11:41:13 +08:00
移除 ccu game 汉化 (官方已内置)
This commit is contained in:
@ -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) => {
|
||||
|
Reference in New Issue
Block a user