WIP: Begin unified map refactor - HTML structure, storage, CSS, state updates
This commit is contained in:
1 parent
f4505b5650
commit
98c45bb26f
20 files changed
+7354
-88
No files matched your search
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
// Disable offline caching so UI updates are always immediate.
|
||||
self.addEventListener('install', event => {
|
||||
event.waitUntil(self.skipWaiting());
|
||||
});
|
||||
|
||||
self.addEventListener('activate', event => {
|
||||
event.waitUntil((async () => {
|
||||
const keys = await caches.keys();
|
||||
await Promise.all(keys.map(k => caches.delete(k)));
|
||||
await self.clients.claim();
|
||||
await self.registration.unregister();
|
||||
})());
|
||||
});
|
||||
|
||||
self.addEventListener('fetch', () => {
|
||||
// Intentionally no fetch interception.
|
||||
});
|
||||
Reference in new issue
Block a user