From c3b9d2d6fd0283ebf058202f04e0971e1e80f3ea Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 30 Mar 2026 05:59:33 +0000 Subject: [PATCH] [fix](trx-frontend-http): close IIFE before bandplan strip declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The spectrum floor/gamma IIFE (line 11507) was missing its closing `})();`, causing all bandplan strip variables and functions to be trapped inside the IIFE scope. This made `bandplanRegion`, `updateBandplanStrip`, and `_bandplanServerDefaultApplied` invisible to the rest of the file, throwing ReferenceErrors that crashed `render()` before the frequency display update could run — leaving the frequency input stuck at its initial "--" placeholder. https://claude.ai/code/session_01RgKhusmnk7AHEJqn1KHffU Signed-off-by: Claude --- src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js index 3389eb6..31d6f37 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js @@ -11577,6 +11577,7 @@ if (spectrumCenterRightBtn) { if (lastSpectrumData) scheduleSpectrumDraw(); }); } +})(); // ── Bandplan strip ────────────────────────────────────────────────────────── let bandplanData = null; @@ -11787,4 +11788,3 @@ function updateBandplanStrip(range) { lbl.style.display = (frac < -0.1 || frac > 1.05) ? "none" : ""; }); } -})();