From 3c6b3652c62d775a193c48b6b01ba82074beca0e Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Mon, 23 Mar 2020 00:00:35 -0500 Subject: [PATCH] hidden is not a js func --- static-data/www/shared/main/stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }