mirror of
https://github.com/danog/code-server.git
synced 2024-11-27 12:57:13 +01:00
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 */
|
||||
|
||||
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", () => {
|
||||
|
Loading…
Reference in New Issue
Block a user