From 4e3cd36b7cd18684bc10590ae3e075bba11b080c Mon Sep 17 00:00:00 2001 From: Mark Wissink Date: Wed, 9 Sep 2026 10:41:29 -0400 Subject: [PATCH] Fix --- assets/boot.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/assets/boot.html b/assets/boot.html index 6d680ff..88dd206 100644 --- a/assets/boot.html +++ b/assets/boot.html @@ -32,7 +32,11 @@
-

Preparing the offline copy…

+ +

@@ -59,7 +63,7 @@ } function start() { - if (tries >= 2) return fail('The offline copy could not start.'); + if (tries >= 2) return fail('Setup could not finish.'); try { sessionStorage.setItem('boot:tries', String(tries + 1)); } catch (err) {} navigator.serviceWorker.register('sw.js').then(function (registration) { @@ -67,12 +71,12 @@ // controlled yet. Otherwise wait for the one installing to get there. if (registration.active) return go(); var worker = registration.installing || registration.waiting; - if (!worker) return fail('The offline copy did not install.'); + if (!worker) return fail('Setup did not start.'); worker.addEventListener('statechange', function (event) { if (event.target.state === 'activated') go(); }); }, function (err) { - fail('Could not install the offline copy: ' + err.message); + fail('Setup failed: ' + err.message); }); } @@ -86,7 +90,7 @@ } if ('serviceWorker' in navigator) start(); - else fail('This browser has no service worker support.'); + else fail('Setup needs service workers, which this browser does not have.'); })();