gamja-old/service-worker.js
2024-11-03 17:31:47 +01:00

6 lines
210 B
JavaScript

self.addEventListener("push", (event) => {
var payload = event.data ? event.data.text() : "no payload";
event.waitUntil(self.registration.showNotification("gamja service worker", {
body: payload,
}));
});