diff --git a/pkg/edge/chromium.go b/pkg/edge/chromium.go index 5c241ad..0517186 100644 --- a/pkg/edge/chromium.go +++ b/pkg/edge/chromium.go @@ -195,6 +195,10 @@ func (e *Chromium) Init(script string) { func (e *Chromium) Eval(script string) { + if e.webview == nil { + return + } + _script, err := windows.UTF16PtrFromString(script) if err != nil { log.Fatal(err)