mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 20:41:46 +00:00
Set focus-related flags correctly after a server reload
(imported from commit 408469c0da0cfa5513e6838329816cd88665981f)
This commit is contained in:
@@ -3,7 +3,11 @@ var notifications = (function () {
|
||||
var exports = {};
|
||||
|
||||
var notice_memory = {};
|
||||
var window_has_focus = true;
|
||||
|
||||
// When you start Zulip, window_has_focus should be true, but it might not be the
|
||||
// case after a server-initiated reload.
|
||||
var window_has_focus = document.hasFocus && document.hasFocus();
|
||||
|
||||
var asked_permission_already = false;
|
||||
var names;
|
||||
var supports_sound;
|
||||
|
||||
Reference in New Issue
Block a user