1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-27 06:23:53 +01:00

Merge pull request #69 from mrwish7/main

Don't check Es mode for low latitudes
This commit is contained in:
Marek Farkaš
2024-07-31 20:42:36 +02:00
committed by GitHub

View File

@@ -98,7 +98,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())