mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +00:00
+1
-1
@@ -35,7 +35,7 @@ func createWindow(win *Window, opts *WindowOptions) error {
|
|||||||
doc := js.Global().Get("document")
|
doc := js.Global().Get("document")
|
||||||
parent := doc.Call("getElementById", "giowindow")
|
parent := doc.Call("getElementById", "giowindow")
|
||||||
if parent == js.Null() {
|
if parent == js.Null() {
|
||||||
return errors.New("app: #giowindow not found found")
|
return errors.New("app: #giowindow not found")
|
||||||
}
|
}
|
||||||
cnv := createCanvas(doc)
|
cnv := createCanvas(doc)
|
||||||
parent.Call("appendChild", cnv)
|
parent.Call("appendChild", cnv)
|
||||||
|
|||||||
Reference in New Issue
Block a user