forked from trent_larson/crowd-funder-for-time-pwa
combine all service-worker scripts into a single file to try and ensure included scripts aren't lost
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user