mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-03 09:18:05 +09:00
Force service worker activate
This commit is contained in:
parent
d1ffd3b68f
commit
5489370223
@ -13,8 +13,10 @@ const cachee = [
|
||||
self.addEventListener('install', ev => {
|
||||
console.info('installed');
|
||||
|
||||
// Cache
|
||||
ev.waitUntil(caches.open(_VERSION_).then(cache => cache.addAll(cachee)));
|
||||
ev.waitUntil(Promise.all([
|
||||
self.skipWaiting(), // Force activate
|
||||
caches.open(_VERSION_).then(cache => cache.addAll(cachee)) // Cache
|
||||
]));
|
||||
});
|
||||
|
||||
// アクティベートされたとき
|
||||
|
Loading…
Reference in New Issue
Block a user