Close notification after click (#344)
Co-authored-by: ekzyis <ek@stacker.news>
This commit is contained in:
parent
57f3ad1c75
commit
56dc0568e0
|
@ -60,6 +60,7 @@ self.addEventListener('notificationclick', (event) => {
|
|||
if (url) {
|
||||
event.waitUntil(self.clients.openWindow(url))
|
||||
}
|
||||
event.notification.close()
|
||||
})
|
||||
|
||||
self.addEventListener('pushsubscriptionchange', (event) => {
|
||||
|
|
Loading…
Reference in New Issue