mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
ui: Bug fix: Should add <meta> to <head> instead of <body>
This commit is contained in:
parent
d6466fdcaf
commit
e582a661c9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user