Browse Source

Enable last active restriction

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

2
app/js/lib/push_worker.js

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

Loading…
Cancel
Save