From c78c3e710635f56b31bcab1fe5523e6b49c34fed Mon Sep 17 00:00:00 2001 From: chee Date: Thu, 19 Sep 2024 10:44:01 +0100 Subject: [PATCH] bg --- public/bento.js | 2 +- public/service-worker.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/bento.js b/public/bento.js index bc2929a..84fe213 100644 --- a/public/bento.js +++ b/public/bento.js @@ -22,7 +22,7 @@ async function registerServiceWorker() { registerServiceWorker() -if (navigator.userAgent.match(/18\.0 Safari/)) { +if (navigator.userAgent.match(/18\.0 (Mobile\/[A-Z0-9]+ )?Safari/)) { document.write(/*html*/ `

Sorry! Apple has broken bento in the latest version of Safari diff --git a/public/service-worker.js b/public/service-worker.js index f4d52ea..2ee45a4 100644 --- a/public/service-worker.js +++ b/public/service-worker.js @@ -1,5 +1,5 @@ // update this when changing the service worker -const SERVICE_WORKER_VERSION = "v9" +const SERVICE_WORKER_VERSION = "v10" const addResourcesToCache = async resources => { const cache = await caches.open(SERVICE_WORKER_VERSION)