mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-26 04:27:26 +08:00
chore: fix sw.js error (#7667)
This commit is contained in:
12
docs/public/sw.js
Normal file
12
docs/public/sw.js
Normal file
@ -0,0 +1,12 @@
|
||||
self.addEventListener('activate', (e) => {
|
||||
e.waitUntil(
|
||||
caches.keys().then((t) => {
|
||||
return Promise.all(
|
||||
t.map((n) => {
|
||||
return caches.delete(n)
|
||||
})
|
||||
)
|
||||
})
|
||||
)
|
||||
})
|
||||
self.skipWaiting()
|
Reference in New Issue
Block a user