internal/ui: refactoring

This commit is contained in:
Hajime Hoshi 2022-04-09 18:23:56 +09:00
parent fcb7df0a59
commit d3b83dd4ea

View File

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