diff --git a/emhttp/plugins/dynamix/include/DefaultPageLayout.php b/emhttp/plugins/dynamix/include/DefaultPageLayout.php index 8ac313e54..c8a1f65e0 100644 --- a/emhttp/plugins/dynamix/include/DefaultPageLayout.php +++ b/emhttp/plugins/dynamix/include/DefaultPageLayout.php @@ -172,8 +172,8 @@ function nchanResume() { timers.reload = setTimeout(nchanPause,); } -// event handlers $(window).click(function() {nchanResume();}); + document.addEventListener('visibilitychange',function(e) { if (document.hidden) nchanPause(); else nchanResume(); });