Browse Source

Update 2016-12-16T17:01:37.594Z

gh-pages
Igor Zhukov 8 years ago
parent
commit
9ee5291766
  1. 1
      js/lib/push_worker.js
  2. 2
      service_worker.js
  3. 2
      webogram.appcache

1
js/lib/push_worker.js

@ -28,6 +28,7 @@ self.addEventListener('push', function(event) {
var closeAll = obj.badge ? !fireNotification(obj, event) : true var closeAll = obj.badge ? !fireNotification(obj, event) : true
if (closeAll) { if (closeAll) {
console.log('[SW] Closing all notifications on push')
var promise = self.registration.showNotification('Telegram').then(function () { var promise = self.registration.showNotification('Telegram').then(function () {
return closeAllNotifications(obj) return closeAllNotifications(obj)
}).catch(function (error) { }).catch(function (error) {

2
service_worker.js

File diff suppressed because one or more lines are too long

2
webogram.appcache

@ -1,5 +1,5 @@
CACHE MANIFEST CACHE MANIFEST
# Time: Fri Dec 16 2016 19:39:29 GMT+0300 (MSK) # Time: Fri Dec 16 2016 20:01:04 GMT+0300 (MSK)
CACHE: CACHE:

Loading…
Cancel
Save