frigate/web/public/notifications-worker.ts

10 lines
228 B
TypeScript
Raw Normal View History

// 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.");
}
});