mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 09:10:07 -06:00
@@ -172,8 +172,8 @@ function nchanResume() {
|
||||
timers.reload = setTimeout(nchanPause,<?=$myPage['Load']*60000?>);
|
||||
}
|
||||
|
||||
// event handlers
|
||||
$(window).click(function() {nchanResume();});
|
||||
|
||||
document.addEventListener('visibilitychange',function(e) {
|
||||
if (document.hidden) nchanPause(); else nchanResume();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user