소스 검색

Gate firmware update tab behind ?beta=true (#127)

* Gate firmware update tab behind ?beta=true

* Use $ helper consistently in BETA_UI gate

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Copilot 3 달 전
부모
커밋
780488a4bf
1개의 변경된 파일과 6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      docs/index.html

+ 6 - 0
docs/index.html

@@ -397,6 +397,12 @@ const $ = s=>document.querySelector(s);
 // -- only the UI is hidden, so adding ?debug=true after an unattended incident still shows the history.
 const DEBUG_UI = new URLSearchParams(location.search).get("debug")==="true";
 if(!DEBUG_UI) for(const el of document.querySelectorAll(".debugonly")) el.style.display="none";
+// Firmware-update tab gate: only visible with ?beta=true in the URL.
+const BETA_UI = new URLSearchParams(location.search).get("beta")==="true";
+if(!BETA_UI){
+  $('#mainTabs .slot-tab[data-tab="tabUpdate"]').style.display="none";
+  $("#updAvail").style.display="none";
+}
 function log(m){ const l=$("#log"); l.textContent=(new Date().toLocaleTimeString()+"  "+m+"\n"+l.textContent).slice(0,2000); }
 
 // ---- Loop-state trail (persistent) ----