internal/ui: bug fix: checking fullscreen on Safari was wrong

This commit is contained in:
Hajime Hoshi 2022-04-09 17:25:19 +09:00
parent a69be34001
commit fcb7df0a59

View File

@ -129,7 +129,7 @@ func (u *userInterfaceImpl) SetFullscreen(fullscreen bool) {
if !document.Truthy() { if !document.Truthy() {
return return
} }
if fullscreen == document.Get("fullscreenElement").Truthy() { if fullscreen == document.Get("fullscreenElement").Truthy() || fullscreen == document.Get("webkitFullscreenElement").Truthy() {
return return
} }
if fullscreen { if fullscreen {