forked from jsnbuchanan/crowd-funder-for-time-pwa
Fix exit from loops
This commit is contained in:
@@ -5,6 +5,7 @@ importScripts(
|
||||
);
|
||||
|
||||
self.addEventListener("install", (event) => {
|
||||
console.error(event);
|
||||
importScripts(
|
||||
"safari-notifications.js",
|
||||
"nacl.js",
|
||||
@@ -22,6 +23,7 @@ self.addEventListener("push", function (event) {
|
||||
payload = JSON.parse(event.data.text());
|
||||
}
|
||||
const message = await self.getNotificationCount();
|
||||
console.error(message);
|
||||
const title = payload ? payload.title : "Custom Title";
|
||||
const options = {
|
||||
body: message,
|
||||
|
||||
Reference in New Issue
Block a user