1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

hotfix for https url

This commit is contained in:
NoobishSVK
2024-09-29 20:04:45 +02:00
parent 6978d4e436
commit c3bcbbcbb3

View File

@@ -77,9 +77,11 @@ async function fetchTx(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(async (data) => {
cachedData[freq] = data;