diff --git a/js/panel_controller.js b/js/panel_controller.js index 36c68ab0f0..42718e0055 100644 --- a/js/panel_controller.js +++ b/js/panel_controller.js @@ -19,11 +19,21 @@ window.drawAttention = function() { if (inboxOpened && !inboxFocused) { + if (window.keepClear) { + clearInterval(window.keepClear); + delete window.keepClear; + } extension.windows.drawAttention(inboxWindowId); } }; window.clearAttention = function() { - extension.windows.clearAttention(inboxWindowId); + if (window.keepClear) { + clearInterval(window.keepClear); + delete window.keepClear; + } + window.keepClear = setInterval(function() { + extension.windows.clearAttention(inboxWindowId) + }, 2000); }; /* Inbox window controller */