From 0294d31ea4d907c600545015d9923083a85da864 Mon Sep 17 00:00:00 2001 From: "R. Miles McCain" Date: Fri, 14 May 2021 15:36:32 +0000 Subject: [PATCH] Remove console warning from script --- shynet/analytics/templates/analytics/scripts/page.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/shynet/analytics/templates/analytics/scripts/page.js b/shynet/analytics/templates/analytics/scripts/page.js index f2c96c1..5328282 100644 --- a/shynet/analytics/templates/analytics/scripts/page.js +++ b/shynet/analytics/templates/analytics/scripts/page.js @@ -11,11 +11,7 @@ var Shynet = { skipHeartbeat: false, sendHeartbeat: function () { try { - if (document.hidden) { - return; - } - if (Shynet.skipHeartbeat) { - console.warn("Heartbeat skipped due to lack of server response"); + if (document.hidden || Shynet.skipHeartbeat) { return; }