dock: fix JS syntax error (?? mixed with ||) that disabled every button

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-10-31 15:39:58 -05:00
parent 65aa8b0894
commit 733f6c54d5

View File

@@ -127,7 +127,7 @@ async function mint(){
} }
let showTok = false; let showTok = false;
function renderManual(t){ function renderManual(t){
const c = cfg(); const title = t ?? buildTitle($("title").value) || "TITLE"; const c = cfg(); const title = (t ?? buildTitle($("title").value)) || "TITLE";
const user = me ? me.user : "<you>", tok = me ? me.token : "<token>"; const user = me ? me.user : "<you>", tok = me ? me.token : "<token>";
$("m_rtmp").textContent = `rtmp://${c.host||location.hostname}:1935/`; $("m_rtmp").textContent = `rtmp://${c.host||location.hostname}:1935/`;
$("m_key").textContent = `${user}/${title}?user=${user}&pass=${showTok ? tok : "••••••••"}`; $("m_key").textContent = `${user}/${title}?user=${user}&pass=${showTok ? tok : "••••••••"}`;