Added news

This commit is contained in:
Timon Ostertun
2020-09-27 23:17:56 +02:00
parent 876776eb5b
commit 00c1c93b80
5 changed files with 112 additions and 14 deletions

View File

@@ -226,6 +226,10 @@ self.addEventListener('push', async function(event) {
options.image = image;
}
// Force refresh on next app open
var os = db.transaction('update_times', 'readwrite').objectStore('update_times');
os.put({ table: 'last_sync', time: 0 });
console.log('Showing notification');
self.registration.showNotification(data.title, options);
break;