mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 17:31:02 +08:00
13 lines
225 B
JavaScript
13 lines
225 B
JavaScript
|
self.addEventListener('activate', (e) => {
|
||
|
e.waitUntil(
|
||
|
caches.keys().then((t) => {
|
||
|
return Promise.all(
|
||
|
t.map((n) => {
|
||
|
return caches.delete(n)
|
||
|
})
|
||
|
)
|
||
|
})
|
||
|
)
|
||
|
})
|
||
|
self.skipWaiting()
|