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:
@@ -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