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)