mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Update path check for cache
This commit is contained in:
1 parent
33a7d9aeb2
commit
19a447fc7a
1 file changed
+1
-1
@@ -23,7 +23,7 @@ sw.addEventListener('install', (event) => {
|
||||
}
|
||||
|
||||
// Check if the page URL does not match the exclusion path
|
||||
const shouldCache = !base.startsWith('/console/auth');
|
||||
const shouldCache = !location.pathname.startsWith(`${base}/auth`);
|
||||
if (shouldCache) {
|
||||
event.waitUntil(addFilesToCache());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user