ui: Bug fix: Should add <meta> to <head> instead of <body>

This commit is contained in:
Hajime Hoshi 2017-07-02 04:18:43 +09:00
parent d6466fdcaf
commit e582a661c9

View File

@ -172,7 +172,7 @@ func initialize() error {
meta := doc.Call("createElement", "meta") meta := doc.Call("createElement", "meta")
meta.Set("name", "viewport") meta.Set("name", "viewport")
meta.Set("content", "width=device-width, initial-scale=1") meta.Set("content", "width=device-width, initial-scale=1")
doc.Get("body").Call("appendChild", meta) doc.Get("head").Call("appendChild", meta)
canvas = doc.Call("createElement", "canvas") canvas = doc.Call("createElement", "canvas")
canvas.Set("width", 16) canvas.Set("width", 16)