feat: add logs to serviceWorker
This commit is contained in:
parent
46226ea26b
commit
ee0973c05a
|
@ -1,11 +1,12 @@
|
||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||||
|
|
||||||
self.addEventListener("install", () => {
|
self.addEventListener("install", () => {
|
||||||
console.log("[Service Worker] install")
|
console.log("[Service Worker] installed")
|
||||||
})
|
})
|
||||||
|
|
||||||
self.addEventListener("activate", (event: any) => {
|
self.addEventListener("activate", (event: any) => {
|
||||||
event.waitUntil((self as any).clients.claim())
|
event.waitUntil((self as any).clients.claim())
|
||||||
|
console.log("[Service Worker] activated")
|
||||||
})
|
})
|
||||||
|
|
||||||
self.addEventListener("fetch", () => {
|
self.addEventListener("fetch", () => {
|
||||||
|
|
Loading…
Reference in New Issue