refactor(sw): remove old loggers

This commit is contained in:
Julien Oculi 2025-06-23 11:57:08 +02:00
parent 35b9e347d5
commit 3db5f389e3

View file

@ -109,7 +109,6 @@ if (IS_SW) {
}) })
self.addEventListener('push', (event) => { self.addEventListener('push', (event) => {
console.log('push')
const { title, options } = (event.data?.json() ?? {}) as { const { title, options } = (event.data?.json() ?? {}) as {
title?: string title?: string
options?: Partial<NotificationOptions> options?: Partial<NotificationOptions>
@ -121,13 +120,9 @@ if (IS_SW) {
} }
}) })
self.addEventListener('notificationclick', (event) => { // TODO handle notifications actions
console.log('SW - NOT_CLICK', event) // self.addEventListener('notificationclick', (event) => {})
}) // self.addEventListener('notificationclose', (event) => {})
self.addEventListener('notificationclose', (event) => {
console.log('SW - NOT_CLOSE', event)
})
} }
async function fetchHandler(event: FetchEvent) { async function fetchHandler(event: FetchEvent) {