gitflow-hotfix-stash: ios_problems

This commit is contained in:
ostertun
2020-10-21 16:26:02 +02:00
parent fa4770e12a
commit 92a11bcfa5
4 changed files with 24 additions and 14 deletions

View File

@@ -471,7 +471,7 @@ async function updateNewsBadge() {
var sum = 0;
for (var n in news) {
var newsEntry = news[n];
newsEntry.date = new Date(Date.parse(newsEntry.date));
newsEntry.date = parseDbTimestamp(newsEntry.date);
if (newsEntry.date > now) continue;
if (newsEntry.date < newsRead) continue;
sum ++;
@@ -508,7 +508,7 @@ var initRegatten = function() {
var onServiceWorkerLoaded = function() {
log('[app] sW loaded');
if ((swRegistration !== null) && canUseLocalDB) {
if ((swRegistration !== null) && (swRegistration.pushManager) && canUseLocalDB) {
pushesPossible = true;
updatePushBadge();
} else {