parent
8627bbb713
commit
d093a7f4c2
@ -1595,14 +1595,11 @@ $(function() {
|
|||||||
$("#viewport .lt").toggleClass("notified", newState);
|
$("#viewport .lt").toggleClass("notified", newState);
|
||||||
}
|
}
|
||||||
|
|
||||||
document.addEventListener(
|
$(document).on("visibilitychange focus", () => {
|
||||||
"visibilitychange",
|
|
||||||
function() {
|
|
||||||
if (sidebar.find(".highlight").length === 0) {
|
if (sidebar.find(".highlight").length === 0) {
|
||||||
toggleNotificationMarkers(false);
|
toggleNotificationMarkers(false);
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
);
|
|
||||||
|
|
||||||
// Only start opening socket.io connection after all events have been registered
|
// Only start opening socket.io connection after all events have been registered
|
||||||
socket.open();
|
socket.open();
|
||||||
|
Loading…
Reference in New Issue
Block a user