Browse Source

Fixed close all notifications

master
Igor Zhukov 8 years ago
parent
commit
8cf24cdf7e
  1. 2
      app/js/lib/push_worker.js

2
app/js/lib/push_worker.js

@ -65,7 +65,7 @@ self.addEventListener('push', function(event) { @@ -65,7 +65,7 @@ self.addEventListener('push', function(event) {
var closePromise = notificationPromise.catch(function () {
console.log('[SW] Closing all notifications on push')
if (userInvisibleSupported) {
return closeAllNotifications
return closeAllNotifications()
}
var promise = self.registration.showNotification('Telegram').then(function () {
// return closeAllNotifications()

Loading…
Cancel
Save