Archived
1
0

feat: add logs to serviceWorker

This commit is contained in:
Joe Previte 2021-02-18 14:35:30 -07:00
parent 46226ea26b
commit ee0973c05a
No known key found for this signature in database
GPG Key ID: 2C91590C6B742C24

View File

@ -1,11 +1,12 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
self.addEventListener("install", () => {
console.log("[Service Worker] install")
console.log("[Service Worker] installed")
})
self.addEventListener("activate", (event: any) => {
event.waitUntil((self as any).clients.claim())
console.log("[Service Worker] activated")
})
self.addEventListener("fetch", () => {