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