Fix planner review findings

This commit is contained in:
2026-07-30 08:11:08 -04:00
parent 7416898bec
commit f3d026a109
6 changed files with 392 additions and 114 deletions
+7 -3
View File
@@ -60,9 +60,13 @@ self.addEventListener("fetch", (event) => {
// /app is a data-free authenticated shell: draft data lives only in account-scoped
// local storage and logout clears that namespace. This makes offline relaunch useful
// without ever caching account data or API responses.
event.respondWith(fetch(request).catch(() =>
url.pathname === "/app" ? caches.match("/app") : caches.match("/landing.html"),
));
event.respondWith(
fetch(request).catch(() =>
url.pathname === "/app"
? caches.match("/app")
: caches.match("/landing.html"),
),
);
return;
}