gamja-old/service-worker.js

7 lines
210 B
JavaScript
Raw Normal View History

2021-05-20 14:03:44 -04:00
self.addEventListener("push", (event) => {
var payload = event.data ? event.data.text() : "no payload";
event.waitUntil(self.registration.showNotification("gamja service worker", {
body: payload,
}));
});