mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/StarCitizenBoxBrowserEx.git
synced 2024-12-22 19:33:43 +08:00
This commit is contained in:
parent
27dbf46324
commit
7ab69ab30a
@ -1,7 +1,8 @@
|
||||
let dataVersion = null
|
||||
|
||||
chrome.runtime.onInstalled.addListener(function () {
|
||||
_checkVersion().then(_ => { });
|
||||
_checkVersion().then(_ => {
|
||||
});
|
||||
console.log("SWTT init");
|
||||
});
|
||||
|
||||
@ -56,6 +57,10 @@ async function _initLocalization(url) {
|
||||
const referral = "https://robertsspaceindustries.com/account/referral-program";
|
||||
const address = "https://robertsspaceindustries.com/account/addresses";
|
||||
const hangar = "https://robertsspaceindustries.com/account/pledges";
|
||||
const spectrum = "https://robertsspaceindustries.com/spectrum/community/";
|
||||
if (url.startsWith(spectrum)) {
|
||||
return;
|
||||
}
|
||||
addLocalizationResource("zh-CN");
|
||||
if (url.startsWith(org) || url.startsWith(citizens) || url.startsWith(organization)) {
|
||||
replaceWords.push({"word": 'members', "replacement": '名成员'});
|
||||
|
@ -1,7 +1,8 @@
|
||||
let dataVersion = null
|
||||
|
||||
chrome.runtime.onInstalled.addListener(function () {
|
||||
_checkVersion().then(_ => { });
|
||||
_checkVersion().then(_ => {
|
||||
});
|
||||
console.log("SWTT init");
|
||||
});
|
||||
|
||||
@ -56,6 +57,10 @@ async function _initLocalization(url) {
|
||||
const referral = "https://robertsspaceindustries.com/account/referral-program";
|
||||
const address = "https://robertsspaceindustries.com/account/addresses";
|
||||
const hangar = "https://robertsspaceindustries.com/account/pledges";
|
||||
const spectrum = "https://robertsspaceindustries.com/spectrum/community/";
|
||||
if (url.startsWith(spectrum)) {
|
||||
return;
|
||||
}
|
||||
addLocalizationResource("zh-CN");
|
||||
if (url.startsWith(org) || url.startsWith(citizens) || url.startsWith(organization)) {
|
||||
replaceWords.push({"word": 'members', "replacement": '名成员'});
|
||||
|
Loading…
Reference in New Issue
Block a user