diff --git a/js/chromium.js b/js/chromium.js index ffa390f7..42384e40 100644 --- a/js/chromium.js +++ b/js/chromium.js @@ -137,6 +137,13 @@ w.clearAttention(); w.drawAttention(); } + }, + + clearAttention: function(window_id) { + if (chrome.app.window) { + var w = chrome.app.window.get(window_id); + w.clearAttention(); + } } }; diff --git a/js/panel_controller.js b/js/panel_controller.js index 53d9a3db..db014378 100644 --- a/js/panel_controller.js +++ b/js/panel_controller.js @@ -57,6 +57,7 @@ }); appWindow.contentWindow.addEventListener('focus', function() { inboxFocused = true; + extension.windows.clearAttention(inboxWindowId); }); // close the inbox if background.html is refreshed