Skip to content

Commit 6398b5b

Browse files
committed
This won't be needed once the async is corrected
This made a second updateSolariBoard() call 2 seconds after page load to correct for the data being one update behind.
1 parent 2666f1c commit 6398b5b

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎js/solari.js‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ var Status = {
6262

6363
var LAST_STATUS = 4;
6464
var NextDueStatus = [null, "soon", "null", "overdue", null];
65-
var solariTimeout;
6665
var solari_setup_done = 0;
6766
var failboard = false;
6867
var syncing = false;
@@ -345,12 +344,6 @@ function updateSolariBoard() {
345344
}).fadeIn("slow");
346345
}
347346

348-
if (!failboard && typeof solariData === 'undefined') {
349-
window.clearTimeout(solariTimeout);
350-
solariTimeout = window.setTimeout(updateSolariBoard, 2000);
351-
return;
352-
}
353-
354347
try {
355348
if (solariData.length === 0) {
356349
clearBoard();

0 commit comments

Comments
 (0)