fix(seenAlerts): Added a function so that every 2 minutes it clears the seenAlerts variable. This should fix a problem when multiple real different alerts for some reason have the same name.
This commit is contained in:
+6
-1
@@ -47,5 +47,10 @@
|
||||
}
|
||||
seenAlerts = currentAlerts;
|
||||
}, 2000);
|
||||
|
||||
setInterval(function () {
|
||||
seenAlerts = {};
|
||||
console.log('[DuressGuard] Cleared seen alerts - rechecking');
|
||||
}, 120000);
|
||||
}
|
||||
})();;
|
||||
})();
|
||||
Reference in New Issue
Block a user