Skip to content

Commit 6508395

Browse files
authored
Merge pull request projecthorus#57 from LukePrior/testing
use main api if idle > 2.5 min
2 parents 9905867 + 858cd9d commit 6508395

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/tracker.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2911,6 +2911,9 @@ function liveData() {
29112911
update(test);
29122912
$("#stTimer").attr("data-timestamp", new Date().getTime());
29132913
$("#stText").text("websocket |");
2914+
} else if ((new Date().getTime() - new Date(frame.time_received).getTime()) > 150000) {
2915+
$("#stText").text("error |");
2916+
refresh();
29142917
} else {
29152918
$("#stText").text("error |");
29162919
}

0 commit comments

Comments
 (0)