add "update is available" check

This commit is contained in:
or-else
2018-11-01 17:39:37 +03:00
parent 20cf802d3d
commit 00e48b7c93
10 changed files with 52 additions and 20 deletions
-1
View File
@@ -20,7 +20,6 @@ firebase.messaging().setBackgroundMessageHandler(function(payload) {
return self.registration.showNotification(title, options);
});
// This code handles a click on notification: takes
// the user to the browser tab with the chat or opens a new tab.
self.addEventListener('notificationclick', function(event) {