Skip to content

Javascript error on latest ubuntu / gtk #20

@marcomq

Description

@marcomq

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions