From 6e6a7f3adbb422437cbddda4fa846e3077317ccf Mon Sep 17 00:00:00 2001 From: xkeyC <3334969096@qq.com> Date: Thu, 16 Nov 2023 21:13:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20ccugame.app=20=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/web_script.js | 2 +- lib/ui/home/webview/webview.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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));