You've already forked fm-dx-webserver
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:
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user