Dismiss all notifications when the tab regains focus

(imported from commit 53c807d7a02aabe62a832a129505d690e98e39cc)
This commit is contained in:
Jeff Arnold 2012-11-27 12:26:36 -05:00
parent 2f882b505a
commit ed1eff9bfa
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,10 @@ exports.initialize = function () {
window_has_focus = true;
new_message_count = 0;
document.title = "Humbug - " + domain;
$.each(notice_memory, function (index, notice_mem_entry) {
notice_mem_entry.obj.cancel();
});
}).blur(function () {
window_has_focus = false;
});