Fixed close all notifications
This commit is contained in:
parent
41bdb545a1
commit
8cf24cdf7e
@ -65,7 +65,7 @@ self.addEventListener('push', function(event) {
|
|||||||
var closePromise = notificationPromise.catch(function () {
|
var closePromise = notificationPromise.catch(function () {
|
||||||
console.log('[SW] Closing all notifications on push')
|
console.log('[SW] Closing all notifications on push')
|
||||||
if (userInvisibleSupported) {
|
if (userInvisibleSupported) {
|
||||||
return closeAllNotifications
|
return closeAllNotifications()
|
||||||
}
|
}
|
||||||
var promise = self.registration.showNotification('Telegram').then(function () {
|
var promise = self.registration.showNotification('Telegram').then(function () {
|
||||||
// return closeAllNotifications()
|
// return closeAllNotifications()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user