Close notification after click (#344)

Co-authored-by: ekzyis <ek@stacker.news>
This commit is contained in:
ekzyis 2023-07-05 22:07:34 +02:00 committed by GitHub
parent 57f3ad1c75
commit 56dc0568e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ self.addEventListener('notificationclick', (event) => {
if (url) { if (url) {
event.waitUntil(self.clients.openWindow(url)) event.waitUntil(self.clients.openWindow(url))
} }
event.notification.close()
}) })
self.addEventListener('pushsubscriptionchange', (event) => { self.addEventListener('pushsubscriptionchange', (event) => {