diff --git a/v3/pkg/application/webview_window_darwin.go b/v3/pkg/application/webview_window_darwin.go index e53c88826..51a3f7f50 100644 --- a/v3/pkg/application/webview_window_darwin.go +++ b/v3/pkg/application/webview_window_darwin.go @@ -855,7 +855,7 @@ func (w *macosWebviewWindow) minimise() { } func (w *macosWebviewWindow) on(eventID uint) { - C.registerListener(C.uint(eventID)) + //C.registerListener(C.uint(eventID)) } func (w *macosWebviewWindow) zoom() { @@ -952,7 +952,9 @@ func (w *macosWebviewWindow) setEnabled(enabled bool) { } func (w *macosWebviewWindow) execJS(js string) { - C.windowExecJS(w.nsWindow, C.CString(js)) + InvokeAsync(func() { + C.windowExecJS(w.nsWindow, C.CString(js)) + }) } func (w *macosWebviewWindow) setURL(uri string) { diff --git a/v3/pkg/events/events_darwin.go b/v3/pkg/events/events_darwin.go index 1e3a5ede4..7c3e3f2d5 100644 --- a/v3/pkg/events/events_darwin.go +++ b/v3/pkg/events/events_darwin.go @@ -17,8 +17,8 @@ void registerListener(unsigned int event) { } bool hasListeners(unsigned int event) { - return hasListener[event]; - //return true; + //return hasListener[event]; + return true; } */