mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 16:59:15 +02:00
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:
+1
-1
@@ -97,7 +97,7 @@ function checkEs() {
|
|||||||
|
|
||||||
if (now - esSwitchCache.lastCheck < esFetchInterval) {
|
if (now - esSwitchCache.lastCheck < esFetchInterval) {
|
||||||
esSwitch = esSwitchCache.esSwitch;
|
esSwitch = esSwitchCache.esSwitch;
|
||||||
} else {
|
} else if (serverConfig.identification.lat > 20) {
|
||||||
esSwitchCache.lastCheck = now;
|
esSwitchCache.lastCheck = now;
|
||||||
fetch(url)
|
fetch(url)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
|
|||||||
Reference in New Issue
Block a user