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