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:
Rosa Gutierrez
2026-01-23 19:25:23 +01:00
parent dfa4875a13
commit ffb2a0b82a
+1 -1
View File
@@ -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))
})