Merge branch 'cbayer-fix-spot-refresh-every-second' into 'master'

fixed spot refresh on no tx every second

See merge request gridtracker.org/gridtracker!114
rich-presence v1.21.0529
chrbayer84 2021-05-29 19:16:02 +00:00
commit 4e2c79a957
1 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -16045,7 +16045,6 @@ function pskSpotCheck(timeSec)
) )
{ {
spotRefreshDiv.innerHTML = "No recent TX"; spotRefreshDiv.innerHTML = "No recent TX";
redrawSpots();
} }
else else
{ {
@ -16685,3 +16684,11 @@ window.addEventListener("load", function ()
fire: "workingDateChanged" fire: "workingDateChanged"
}); });
}); });
function refreshSpotsNoTx()
{
redrawSpots();
}
setInterval(refreshSpotsNoTx, 300000);
setTimeout(refreshSpotsNoTx, 300000);