Change <title> on ui.Start (#56)

This commit is contained in:
Hajime Hoshi 2015-01-05 22:08:22 +09:00
parent 7b47e37d34
commit 1a4b25b23f

View File

@ -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