combine all service-worker scripts into a single file to try and ensure included scripts aren't lost

This commit is contained in:
2024-02-14 20:46:34 -07:00
parent ca70b19831
commit f517b09ed7
8 changed files with 75 additions and 28 deletions

View File

@@ -547,7 +547,11 @@ async function getNotificationCount() {
newClaims++;
}
if (newClaims > 0) {
result = `There are ${newClaims} new activities on Time Safari`;
if (newClaims === 1) {
result = "There is 1 new activity on Time Safari";
} else {
result = `There are ${newClaims} new activities on Time Safari`;
}
}
const most_recent_notified = claims[0]["id"];
await setMostRecentNotified(most_recent_notified);