diff --git a/static-data/www/shared/main/stats.js b/static-data/www/shared/main/stats.js index 30b561f8..f2cd2c99 100755 --- a/static-data/www/shared/main/stats.js +++ b/static-data/www/shared/main/stats.js @@ -82,7 +82,7 @@ fetch('/config/get/general.security_level', { }) var getStats = function(){ - if (document.hidden()){ + if (document.hidden){ console.debug('skipping stats since no window focus') return }