This commit is contained in:
Nicolas Mowen 2024-08-03 18:38:21 -06:00
parent 005c3a7c77
commit eb94b76301

View File

@ -1,7 +1,6 @@
// Notifications Worker // Notifications Worker
self.addEventListener("push", function (event) { self.addEventListener("push", function (event) {
console.log(`received push at ${new Date()}`)
// @ts-expect-error we know this exists // @ts-expect-error we know this exists
if (event.data) { if (event.data) {
// @ts-expect-error we know this exists // @ts-expect-error we know this exists
@ -16,10 +15,6 @@ self.addEventListener("push", function (event) {
action: "markReviewed", action: "markReviewed",
title: "Mark as Reviewed", title: "Mark as Reviewed",
}, },
{
action: "snooze",
title: "Snooze",
},
]; ];
break; break;
} }
@ -55,8 +50,6 @@ self.addEventListener("notificationclick", (event) => {
}); });
} }
break; break;
case "snooze":
break;
default: default:
// @ts-expect-error we know this exists // @ts-expect-error we know this exists
if (event.notification.data) { if (event.notification.data) {