From 1a4b25b23feb74b47958f553f921010d86daadae Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 5 Jan 2015 22:08:22 +0900 Subject: [PATCH] Change on ui.Start (#56) --- internal/ui/ui_js.go | 2 ++ 1 file changed, 2 insertions(+) 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