Refactor: Reload Dash/Main pages when visibility becomes visible

This commit is contained in:
Squidly271
2025-04-15 11:38:57 -04:00
committed by GitHub
parent 6486409ace
commit f90362c029
@@ -1291,7 +1291,13 @@ document.addEventListener("visibilitychange", (event) => {
if (document.hidden) {
nchanFocusStop();
} else {
nchanFocusStart();
<? if (isset($myPage['Load']) && $myPage['Load'] > 0):?>
$(function(){
setTimeout(function(){window.location.reload();},1000);
});
<?else:?>
nchanFocusStart();
<?endif;?>
}
<?endif;?>
});