From 2cf1210b6f14b01fecd07e53e816e23fdd914d04 Mon Sep 17 00:00:00 2001 From: FormularSumo Date: Wed, 11 Sep 2024 21:55:31 +0200 Subject: [PATCH] Output fullscreen support because Safari It's still showing the fullscreen button and pressing the button is still trying to do something - despite the site now having updated and not throwing any errors about the feature checking code now. My theory is that Safari iOS claims to support requestFullscreen even though it doesn't actually.. would hardly be the first time Apple have done this (indexedDB, web Push..). Especially as they tried to implement fullscreen in iOS 17.6 but gave up, and are now trying to in iOS 18 beta (although off by default and doesn't seem to do anything when on). --- index.html | 3 +++ sw.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index e77ce65..4b3e443 100644 --- a/index.html +++ b/index.html @@ -197,6 +197,9 @@ if (document.body.requestFullscreen == 'undefined' && document.body.webkitRequestFullscreen == 'undefined' && document.body.mozRequestFullScreen == 'undefined') { document.getElementById("fullscreen-toggle").remove(); //Remove fullscreenbutton on iOS where it's not supported.. } + console.log(document.body.requestFullscreen); + console.log(document.body.webkitRequestFullscreen); + console.log(document.body.mozRequestFullScreen); \ No newline at end of file diff --git a/sw.js b/sw.js index 0def770..bb8b4fc 100644 --- a/sw.js +++ b/sw.js @@ -1,4 +1,4 @@ -const CACHE_NAME = `0.12.0.2`; // stable.pre-release.minor.web +const CACHE_NAME = `0.12.0.3 `; // stable.pre-release.minor.web // Use the install event to pre-cache all initial resources. self.addEventListener('install', event => {