From 4570cac5e54abf5a39ff47b6643ee1c4343a0a34 Mon Sep 17 00:00:00 2001 From: mysticmomba Date: Thu, 18 Jun 2026 10:53:57 -0400 Subject: [PATCH] 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. --- src/inject.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/inject.js b/src/inject.js index 0dd09c3..df975a0 100644 --- a/src/inject.js +++ b/src/inject.js @@ -47,5 +47,10 @@ } seenAlerts = currentAlerts; }, 2000); + + setInterval(function () { + seenAlerts = {}; + console.log('[DuressGuard] Cleared seen alerts - rechecking'); + }, 120000); } -})();; \ No newline at end of file +})(); \ No newline at end of file