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