From e10432dae4b574858b71584c6cd0775e8c7b2c00 Mon Sep 17 00:00:00 2001 From: andreas Date: Sun, 3 Mar 2024 18:37:20 +0100 Subject: [PATCH] correctly show source names --- web/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/index.js b/web/index.js index 31ec3f9..bc5bcdf 100644 --- a/web/index.js +++ b/web/index.js @@ -1506,7 +1506,9 @@ function createDashboard() { frame.innerHTML = ''; } function sourceName(v){ + if (v == 0) return "N2K"; for (let n in channelList){ + if (v == channelList[n].id) return n; if (v >= channelList[n].id && v <= channelList[n].max){ return n; }