web-view icon indicating copy to clipboard operation
web-view copied to clipboard

Invoke handler not receiving Javascript messages

Open ssmith22 opened this issue 4 years ago • 3 comments

Using Ubuntu 18.04. After the latest upgrade the webview handler no longer receives Javascript messages.

These new libraries might be the culprits: gtk_updates

No error or complication issues show up. Confirmed using webview-examples.

ssmith22 avatar May 12 '21 23:05 ssmith22

Probably related: https://github.com/Boscop/web-view/issues/280

jeffparsons avatar May 12 '21 23:05 jeffparsons

@ssmith22 I've just confirmed that the fix from https://github.com/Boscop/web-view/issues/280 works for me on Ubuntu 20.10, after having the equivalent OS package update break it for me today.

jeffparsons avatar May 13 '21 00:05 jeffparsons

Thanks! The script fix didn't work for me, but changing the invoke line based on the linked slask question did. Ie: window.webkit.messageHandlers.external.postMessage(JSON.stringify(arg));

ssmith22 avatar May 13 '21 00:05 ssmith22