Closed janily closed 4 years ago
try
webView.executeJavaScript('a()').then(res => {
console.log(res)
}).catch(err => console.error(err))
and see what's the error
@mathieudutour i try
webView.executeJavaScript('a()').then(res => { console.log(res) }).catch(err => console.error(err))
the console.log is null , my front is vue, i put the global function in the index.html "
@mathieudutour i have done the issue.sorry, i misunderstanding the about the Sending a message to the plugin from the WebView.close the issue please.
@janily Can you please describe what was causing your issue? I believe I'm having the same problem.
i made a sketch plugin with webview,when sending a message to the WebView from your plugin command,it is not working: my frotend code is
my plugin code is :
dev tool console is: