Fixed close all notifications

This commit is contained in:
Igor Zhukov 2016-12-19 19:05:09 +03:00
parent 41bdb545a1
commit 8cf24cdf7e

View File

@ -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()