Make the app work: bind transport fetch (Illegal invocation), emergency phone content, real map assets+POIs, wire map loader into routes, offline icon cache match, multi-day event times, hide empty emergency groups; remove bottom nav bar (home tiles + brand cover navigation)
Some checks failed
ci / check (push) Has been cancelled

This commit is contained in:
Lumen Stage1 2026-10-03 12:31:43 -05:00
commit 398f0b097a
11 changed files with 200 additions and 89 deletions

View file

@ -119,11 +119,13 @@ self.addEventListener("fetch", (event) => {
return;
}
// Other same-origin GETs (manifest, icons) — cache-first with network fallback
// Other same-origin GETs (manifest, icons) — cache-first with network fallback.
// ignoreSearch: the page may request /icon.svg?v=N while precache stored the
// bare path — offline the versioned URL must still hit the cached entry.
event.respondWith(
caches.match(req).then((cached) => {
caches.match(req, { ignoreSearch: true }).then((cached) => {
if (cached) return cached;
return fetch(req).catch(() => caches.match(req));
return fetch(req).catch(() => caches.match(req, { ignoreSearch: true }));
}),
);
});