diff --git a/internal/ui/ui_js.go b/internal/ui/ui_js.go index c9622986d..7bd897337 100644 --- a/internal/ui/ui_js.go +++ b/internal/ui/ui_js.go @@ -85,6 +85,8 @@ func init() { } func Start(width, height, scale int, title string) (actualScale int, err error) { + doc := js.Global.Get("document") + doc.Set("title", title) canvas.Set("width", width*scale) canvas.Set("height", height*scale) return scale, nil