mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +01:00
internal/uidriver/js: Bug fix: Suppress warnings on SetFullscreen
Closes #1727
This commit is contained in:
parent
52567c459f
commit
0ec5b7b857
@ -98,6 +98,9 @@ func (u *UserInterface) SetFullscreen(fullscreen bool) {
|
|||||||
if !document.Truthy() {
|
if !document.Truthy() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if fullscreen == document.Get("fullscreenElement").Truthy() {
|
||||||
|
return
|
||||||
|
}
|
||||||
if fullscreen {
|
if fullscreen {
|
||||||
f := canvas.Get("requestFullscreen")
|
f := canvas.Get("requestFullscreen")
|
||||||
if !f.Truthy() {
|
if !f.Truthy() {
|
||||||
|
Loading…
Reference in New Issue
Block a user