From c14a49c613d0a5f8ace115ad105a3333a8f67685 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 16 Dec 2016 17:17:24 +0300 Subject: [PATCH] Fixed double notifications --- app/js/lib/push_worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/lib/push_worker.js b/app/js/lib/push_worker.js index 39dc740f..5603f8e6 100644 --- a/app/js/lib/push_worker.js +++ b/app/js/lib/push_worker.js @@ -76,7 +76,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')