mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-25 19:34:48 +01:00
Matthias Kretschmann
05ad0470c2
* migrate to biome * cleanup * fix * use tsx * script tweaks * fix test runs * path tweaks
15 lines
304 B
JavaScript
15 lines
304 B
JavaScript
self.addEventListener('install', () => {
|
|
self.skipWaiting()
|
|
})
|
|
|
|
self.addEventListener('activate', () => {
|
|
self.registration
|
|
.unregister()
|
|
.then(() => self.clients.matchAll())
|
|
.then((clients) => {
|
|
for (const client of clients) {
|
|
client.navigate(client.url)
|
|
}
|
|
})
|
|
})
|