Revert "Fix notification click URL by using correct data property"
This reverts commit 4f2308d380.
This was from another branch, shoudln't have been included here.
This commit is contained in:
@@ -25,7 +25,7 @@ async function updateBadgeCount({ data: { badge } }) {
|
||||
self.addEventListener("notificationclick", (event) => {
|
||||
event.notification.close()
|
||||
|
||||
const url = new URL(event.notification.data.url, self.location.origin).href
|
||||
const url = new URL(event.notification.data.path, self.location.origin).href
|
||||
event.waitUntil(openURL(url))
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user