From ecad6d01e313594ad6beaa576d52b3b5f68b5eb7 Mon Sep 17 00:00:00 2001 From: JianMiau Date: Mon, 29 Aug 2022 13:59:46 +0800 Subject: [PATCH] =?UTF-8?q?[mod]=20iOS=E5=8F=AF=E4=BB=A5=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E6=BA=9D=E9=80=9ACocos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/Manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/Script/Manager.ts b/assets/Script/Manager.ts index 8925050..8df70a9 100644 --- a/assets/Script/Manager.ts +++ b/assets/Script/Manager.ts @@ -62,7 +62,7 @@ export default class Manager extends cc.Component { self.Birdge(method, value); }; } - let scheme: string = "http"; + let scheme: string = "jmka"; this.webview.setJavascriptInterfaceScheme(scheme); this.webview.setOnJSCallback((sender: any, url: any) => { let content: string = decodeURI(url.split(`${scheme}://?data=`)[1]);