1
0

disable service worker registration

A recent bug has proven that the service worker cache refresh does not
yet work as intended and can lead to a bug where the entire app does not
load. It therefore has been disabled for now.
This commit is contained in:
Adrian Wannenmacher 2026-03-11 19:06:36 +01:00
parent 5064e3856f
commit a5e8ec0a07
Signed by: tfld
GPG Key ID: 19D986ECB1E492D5

View File

@ -4,11 +4,11 @@ import BaseView from "/ui/base_view.js";
import InfoView from "/ui/info_view.js"; import InfoView from "/ui/info_view.js";
import Layout from "/ui/layout.js"; import Layout from "/ui/layout.js";
try { // try {
navigator.serviceWorker.register("/service-worker.js", { scope: "/" }); // navigator.serviceWorker.register("/service-worker.js", { scope: "/" });
} catch (error) { // } catch (error) {
console.error("failed to register service worker: ", error); // console.error("failed to register service worker: ", error);
} // }
m.route.prefix = ""; m.route.prefix = "";
m.route(document.body, "/", { m.route(document.body, "/", {