Remove console warning from script
This commit is contained in:
parent
40cb5afbad
commit
0294d31ea4
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user