From 058ad8cd8eaba5f09c189cd4c17849a12c7c70de Mon Sep 17 00:00:00 2001 From: BTMuli Date: Fri, 15 Dec 2023 15:06:05 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E6=8B=BC?= =?UTF-8?q?=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/TGClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/TGClient.ts b/src/utils/TGClient.ts index 14a34fb9..8b10f67e 100644 --- a/src/utils/TGClient.ts +++ b/src/utils/TGClient.ts @@ -97,7 +97,7 @@ class TGClient { */ async loadJSBridge(): Promise { const executeJS = `javascript:(function() { - if(window.MiHoYoJSBridge) return; + if(window.MiHoYoJSInterface) return; window.MiHoYoJSInterface = { postMessage: function(arg) { window.__TAURI__.event.emit('post_mhy_client', arg) }, closePage: function() { this.postMessage('{"method":"closePage"}') },