From fcb7df0a59ee3db595fa4a7256bf268ea47e91b4 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 9 Apr 2022 17:25:19 +0900 Subject: [PATCH] internal/ui: bug fix: checking fullscreen on Safari was wrong --- internal/ui/ui_js.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ui/ui_js.go b/internal/ui/ui_js.go index 4fd0163d6..4a957bf51 100644 --- a/internal/ui/ui_js.go +++ b/internal/ui/ui_js.go @@ -129,7 +129,7 @@ func (u *userInterfaceImpl) SetFullscreen(fullscreen bool) { if !document.Truthy() { return } - if fullscreen == document.Get("fullscreenElement").Truthy() { + if fullscreen == document.Get("fullscreenElement").Truthy() || fullscreen == document.Get("webkitFullscreenElement").Truthy() { return } if fullscreen {