Skip to content

Commit

Permalink
Do not Eval before webview created
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Oct 10, 2023
1 parent a97a8db commit 42cbb98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/edge/chromium.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 42cbb98

Please sign in to comment.