Allow noVNC to enter fullscreen in Safari on macOS

The fullscreen limitation in Safari seems to only concern Safari on iOS.
On macOS it works just fine.
This commit is contained in:
Alexander Zeijlon 2025-10-20 14:52:48 +02:00
parent 71d0bfaccd
commit 7a929f1231
1 changed files with 2 additions and 2 deletions

View File

@ -146,8 +146,8 @@ const UI = {
initFullscreen() {
// Only show the button if fullscreen is properly supported
// * Safari doesn't support alphanumerical input while in fullscreen
if (!isSafari() &&
// * Safari on iOS doesn't support alphanumerical input while in fullscreen
if (!(isSafari() && isIOS()) &&
(document.documentElement.requestFullscreen ||
document.documentElement.mozRequestFullScreen ||
document.documentElement.webkitRequestFullscreen ||