[fix](trx-frontend-http): show aprs and ais bookmarks in background decode
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
+6
-1
@@ -111,11 +111,16 @@
|
||||
|
||||
function bookmarkDecoderKinds(bookmark) {
|
||||
const decoders = Array.isArray(bookmark && bookmark.decoders) ? bookmark.decoders : [];
|
||||
return decoders
|
||||
const supported = decoders
|
||||
.map(function (item) { return String(item || "").trim().toLowerCase(); })
|
||||
.filter(function (item, index, arr) {
|
||||
return SUPPORTED_DECODERS.includes(item) && arr.indexOf(item) === index;
|
||||
});
|
||||
if (supported.length > 0) return supported;
|
||||
const mode = String(bookmark && bookmark.mode || "").trim().toUpperCase();
|
||||
if (mode === "AIS") return ["ais"];
|
||||
if (mode === "PKT") return ["aprs"];
|
||||
return supported;
|
||||
}
|
||||
|
||||
function renderBookmarkPick() {
|
||||
|
||||
Reference in New Issue
Block a user