Skip to content
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

Javascript error on latest ubuntu / gtk #20

Open
marcomq opened this issue Sep 29, 2021 · 0 comments
Open

Javascript error on latest ubuntu / gtk #20

marcomq opened this issue Sep 29, 2021 · 0 comments

Comments

@marcomq
Copy link

marcomq commented Sep 29, 2021

Hi!
Webview has issues with the latest gtk version.
There is an error message aboit an undefined "invoke" funktion.

This error showed up when enabling the debug console:

[Error] Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'window.external.invoke')
	dispatchException (nimview.iife.js:1:27644)
	(anonymous function) (nimview.iife.js:1:23878)
	t (nimview.iife.js:1)
	s (nimview.iife.js:1:321)
	promiseReactionJob

[Error] TypeError: window.backend.echoAndModify is not a function. (In 'window.backend.echoAndModify(document.getElementById('sampleInput').value)', 'window.backend.echoAndModify' is undefined)
	onclick (index.html:13)

I created a PR to fix the issue. It is updating to a maintained C webview of the library wails and adding a workaround for gtk:

#19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant