mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +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() {
|
||||
return
|
||||
}
|
||||
if fullscreen == document.Get("fullscreenElement").Truthy() {
|
||||
return
|
||||
}
|
||||
if fullscreen {
|
||||
f := canvas.Get("requestFullscreen")
|
||||
if !f.Truthy() {
|
||||
|
Loading…
Reference in New Issue
Block a user