fix minor typos, potential mem leaks

This commit is contained in:
Amateur Audio Dude
2025-07-07 22:32:04 +10:00
committed by GitHub
parent 4ece21d513
commit f29570261e
6 changed files with 17 additions and 103 deletions
+1 -1
View File
@@ -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();