Fix exit from loops

This commit is contained in:
Matthew Raymer
2023-12-01 07:12:13 -05:00
parent 7d6a45061d
commit 4dd5664462
2 changed files with 4 additions and 8 deletions

View File

@@ -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,