internal/uidriver/js: Bug fix: Suppress warnings on SetFullscreen

Closes #1727
This commit is contained in:
Hajime Hoshi 2021-07-23 02:15:41 +09:00
parent 52567c459f
commit 0ec5b7b857

View File

@ -98,6 +98,9 @@ func (u *UserInterface) SetFullscreen(fullscreen bool) {
if !document.Truthy() {
return
}
if fullscreen == document.Get("fullscreenElement").Truthy() {
return
}
if fullscreen {
f := canvas.Get("requestFullscreen")
if !f.Truthy() {