-
Notifications
You must be signed in to change notification settings - Fork 176
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
No external
in Ubuntu 20.04 applications
#289
Comments
external
in Ubuntu 20.20 applicationsexternal
in Ubuntu 20.04 applications
Looks like it's available in |
This must be the same issue I'm running into #296 |
I wonder if you can help me understand what the implication of this is. Does this mean the Ubuntu 20.04 version of the app should be coded differently? Or is there a way to check and use |
Indeed looks like the same issue. What if we close a less detailed one as a duplicate?
A bit, yes. function sendMessageToServer(cmd) {
if (window.external !== undefined) {
return window.external.invoke(cmd);
} else if (window.webkit.messageHandlers.external !== undefined) {
return window.webkit.messageHandlers.external.postMessage(cmd);
}
throw new Error('Failed to locate webkit external handler')
} |
Sure thing. Thanks a lot! |
I've cloned this repo, navigated into
webview-examples
and runcargo run --example todo
.Expected: TODO app runs and works
Actual: app starts, but no UI elements are displayed in the app
Seems like there's no
external
(window.external
) object in the page:On the other hand,
minimal
example works just fine, displaying a Wiki page.Also both examples work on macOS and Windows for me.
I'm using stock Ubuntu with a few packages installed to successfully compile the examples.
Is there any way to fix it or at least do debug it further?
The text was updated successfully, but these errors were encountered: