diff --git a/assets/Script/Manager.ts b/assets/Script/Manager.ts index 6329ed2..8925050 100644 --- a/assets/Script/Manager.ts +++ b/assets/Script/Manager.ts @@ -65,7 +65,7 @@ export default class Manager extends cc.Component { let scheme: string = "http"; this.webview.setJavascriptInterfaceScheme(scheme); this.webview.setOnJSCallback((sender: any, url: any) => { - let content: string = decodeURI(url.split(`${scheme}://`)[1]); + let content: string = decodeURI(url.split(`${scheme}://?data=`)[1]); try { let data: JSON = JSON.parse(content); let method: any = data["method"];