mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-31 01:09:18 +02:00
hotfix for https url
This commit is contained in:
+4
-2
@@ -77,9 +77,11 @@ async function fetchTx(freq, piCode, rdsPs) {
|
|||||||
return processData(cachedData[freq], piCode, rdsPs);
|
return processData(cachedData[freq], piCode, rdsPs);
|
||||||
}
|
}
|
||||||
|
|
||||||
const url = "https://maps.fmdx.org/api?freq=" + freq;
|
const url = "https://maps.fmdx.org/api/?freq=" + freq;
|
||||||
|
|
||||||
return fetch(url)
|
return fetch(url, {
|
||||||
|
redirect: 'manual'
|
||||||
|
})
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(async (data) => {
|
.then(async (data) => {
|
||||||
cachedData[freq] = data;
|
cachedData[freq] = data;
|
||||||
|
|||||||
Reference in New Issue
Block a user