Browse Source

Fixed double notifications

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

2
app/js/lib/push_worker.js

@ -76,7 +76,7 @@ function fireNotification(obj, event) {
var nowTime = +(new Date()) var nowTime = +(new Date())
if (nowTime - lastAliveTime < 60000) { if (nowTime - lastAliveTime < 60000) {
console.log('Supress notification because some instance is alive') console.log('Supress notification because some instance is alive')
// return false return false
} }
if (muteUntil && nowTime < muteUntil) { if (muteUntil && nowTime < muteUntil) {
console.log('Supress notification because mute for ', (muteUntil - nowTime) / 60000, 'min') console.log('Supress notification because mute for ', (muteUntil - nowTime) / 60000, 'min')

Loading…
Cancel
Save