refactor(sw): remove old loggers
This commit is contained in:
parent
35b9e347d5
commit
3db5f389e3
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue