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; }