mirror of
https://github.com/cdr/code-server.git
synced 2025-12-06 16:34:35 +01:00
feat: add logs to serviceWorker
This commit is contained in:
parent
46226ea26b
commit
ee0973c05a
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue