mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 01:29:54 -06:00
refactor: Reload Dash/Main pages when visibility becomes visible
This commit is contained in:
@@ -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;?>
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user