fix: add .catch() to SW activate event

This commit is contained in:
posimai 2026-03-27 12:27:00 +09:00
parent 81065d7726
commit 0a61c33209
1 changed files with 1 additions and 1 deletions

2
sw.js
View File

@ -14,7 +14,7 @@ self.addEventListener('activate', event => {
Promise.all(
keys.filter(k => k !== CACHE_NAME).map(k => caches.delete(k))
)
)
).catch(err => console.warn('[SW] activate error', err))
);
self.clients.claim();
});