浏览代码

Use $ helper consistently in BETA_UI gate

copilot-swe-agent[bot] 3 月之前
父节点
当前提交
2e6ee7fea7
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      docs/index.html

+ 1 - 1
docs/index.html

@@ -400,7 +400,7 @@ if(!DEBUG_UI) for(const el of document.querySelectorAll(".debugonly")) el.style.
 // 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){
-  document.querySelector('#mainTabs .slot-tab[data-tab="tabUpdate"]').style.display="none";
+  $('#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); }