Fix help popup

Properly call the open() function in the web assembly to open a new
popup.
This commit is contained in:
Zorchenhimer 2019-03-16 16:40:39 -04:00
parent d0cd90e7af
commit 01219fffa1
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ func recieve(v []js.Value) {
url = d.Arguments[0]
}
js.Call("appendMessages", data.HTML())
js.Call(`window.open("` + url + `", "_blank", "menubar=0,status=0,toolbar=0,width=300,height=600")`)
js.Get("window").Call("open", url, "_blank", "menubar=0,status=0,toolbar=0,width=300,height=600")
}
}
}