mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-13 06:35:24 +03:00
Cleanup
This commit is contained in:
parent
005c3a7c77
commit
eb94b76301
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user