refactor: Reload Dash/Main pages when visibility becomes visible

This commit is contained in:
Zack Spear
2025-05-05 12:44:30 -07:00
parent f8d13b8b09
commit b6428a5f2f

View File

@@ -433,7 +433,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;?>
});