element-plus/docs/public/sw.js
2022-05-12 23:48:16 +08:00

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()