Fix planner review findings
This commit is contained in:
+7
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user