Don't check Es mode for low latitudes

Don't worry about checking for sp.E mode if the server location is at a latitude below EU/NA, as no data is available
This commit is contained in:
Adam Wisher
2024-07-22 20:50:32 +01:00
parent 7c2a71978b
commit 685dc78754
+1 -1
View File
@@ -97,7 +97,7 @@ function checkEs() {
if (now - esSwitchCache.lastCheck < esFetchInterval) {
esSwitch = esSwitchCache.esSwitch;
} else {
} else if (serverConfig.identification.lat > 20) {
esSwitchCache.lastCheck = now;
fetch(url)
.then(response => response.json())