frigate/web/public/notifications-worker.ts
2024-07-20 14:45:28 -06:00

10 lines
228 B
TypeScript

// Notifications Worker
self.addEventListener("push", function (event) {
if (event.data) {
console.log("This push event has data: ", event.data.text());
} else {
console.log("This push event has no data.");
}
});