element-plus/docs/public/sw.js

13 lines
225 B
JavaScript
Raw Normal View History

2022-05-12 23:48:16 +08:00
self.addEventListener('activate', (e) => {
e.waitUntil(
caches.keys().then((t) => {
return Promise.all(
t.map((n) => {
return caches.delete(n)
})
)
})
)
})
self.skipWaiting()