-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
window.chrome.webview.hostObjects.sync.MyFunc return weird Error #3660
Comments
Thanks for reporting the issue. Could you please provide some more information about this?
|
Framework: wpf(.net7) |
Hi @adamgogogo,
For async calling, could you use "try/catch" to caught the error when calling window.chrome.webview.hostObjects.MyFunc.click()? Thanks. |
Hi, @ElyssaJyu I do use "try/catch" to caught the error: Any other reasons? Thanks! |
God, I found the problem cause I invoke Thanks a lots! @ElyssaJyu |
Edge Webview2 is wonderful tool, but recently I encounter something weird...
When I call
window.chrome.webview.hostObjects.sync.MyFunc.click
, Javascript return the following errors:VM3978:1 Uncaught TypeError: Cannot read properties of null (reading 'error') at RemoteMessenger.postSyncRequestMessage (<anonymous>:1:16326) at Function.getHostProperty (<anonymous>:1:33600) at Function._getAmbiguous (<anonymous>:1:20742) at Object.get (<anonymous>:1:23287)
When I use async await to call
window.chrome.webview.hostObjects.MyFunc.click
, Javascript not invoke MyFunc.click(), nothing happened.(async () => { await window.chrome.webview.hostObjects.MyFunc.click(); })();
My Question is How can I resolve this problem? Thanks a lot!
The text was updated successfully, but these errors were encountered: