diff --git a/assets/web_script.js b/assets/web_script.js index 0d5deab..716da59 100644 --- a/assets/web_script.js +++ b/assets/web_script.js @@ -36,7 +36,7 @@ function LocalizationWatchUpdate() { SCLocalizationEnableSplitMode = true; } - if (window.location.hostname.includes("www.erkul.games") || window.location.hostname.includes("ccugame.app")) { + if (window.location.hostname.includes("www.erkul.games")) { document.body.addEventListener("click", function (event) { setTimeout(function () { allTranslate().then(_ => { diff --git a/lib/ui/home/webview/webview.dart b/lib/ui/home/webview/webview.dart index 93abb29..9159a14 100644 --- a/lib/ui/home/webview/webview.dart +++ b/lib/ui/home/webview/webview.dart @@ -104,6 +104,7 @@ class WebViewModel { } if (url.startsWith(concierge)) { + replaceWords.clear(); replaceWords.addAll(_getLocalizationResource("concierge")); } if (url.startsWith(hangar)) { @@ -128,8 +129,7 @@ class WebViewModel { "getRSILauncherToken(\"$loginChannel\");"); } } else if (uri.host.contains("www.erkul.games") || - uri.host.contains("uexcorp.space") || - uri.host.contains("ccugame.app")) { + uri.host.contains("uexcorp.space")) { // 工具网站 dPrint("load script"); await Future.delayed(const Duration(milliseconds: 100));