Remove console warning from script

This commit is contained in:
R. Miles McCain 2021-05-14 15:36:32 +00:00
parent 40cb5afbad
commit 0294d31ea4

View File

@ -11,11 +11,7 @@ var Shynet = {
skipHeartbeat: false, skipHeartbeat: false,
sendHeartbeat: function () { sendHeartbeat: function () {
try { try {
if (document.hidden) { if (document.hidden || Shynet.skipHeartbeat) {
return;
}
if (Shynet.skipHeartbeat) {
console.warn("Heartbeat skipped due to lack of server response");
return; return;
} }