mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 08:49:16 +02:00
fix minor typos, potential mem leaks
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ if (typeof algorithms[algoSetting] !== 'undefined') {
|
||||
// IIFE to build the local TX DB cache from the endpoint.
|
||||
(async () => {
|
||||
try {
|
||||
consoleCmd.logInfo('Fetching transmitter database...');
|
||||
setTimeout(() => consoleCmd.logInfo('Fetching transmitter database...'), 0);
|
||||
const response = await fetch(`https://maps.fmdx.org/api?qth=${serverConfig.identification.lat},${serverConfig.identification.lon}`);
|
||||
if (!response.ok) throw new Error(`HTTP error! Status: ${response.status}`);
|
||||
localDb = await response.json();
|
||||
|
||||
Reference in New Issue
Block a user