mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-24 16:56:16 -04:00
Try to speed up LCP allSettled
This commit is contained in:
parent
924c17323d
commit
fcb854a000
2 changed files with 5 additions and 5 deletions
|
@ -156,7 +156,7 @@ self.addEventListener('activate', evt => {
|
|||
return evt.waitUntil(
|
||||
caches.keys()
|
||||
.then(cacheNames => {
|
||||
return Promise.all(
|
||||
return Promise.allSettled(
|
||||
cacheNames.map(cacheName => {
|
||||
if (cacheName !== cacheTitle) {
|
||||
return caches.delete(cacheName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue