From e582a661c9147d5410711fabdc76a809843fd7d5 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 2 Jul 2017 04:18:43 +0900 Subject: [PATCH] ui: Bug fix: Should add to instead of --- internal/ui/ui_js.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ui/ui_js.go b/internal/ui/ui_js.go index 1fb893bf6..4bd863a1d 100644 --- a/internal/ui/ui_js.go +++ b/internal/ui/ui_js.go @@ -172,7 +172,7 @@ func initialize() error { meta := doc.Call("createElement", "meta") meta.Set("name", "viewport") 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.Set("width", 16)