mirror of https://github.com/zulip/zulip.git
Dismiss all notifications when the tab regains focus
(imported from commit 53c807d7a02aabe62a832a129505d690e98e39cc)
This commit is contained in:
parent
2f882b505a
commit
ed1eff9bfa
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue