Skip to content

Commit 2eb3157

Browse files
committed
fix: restore accidentally deleted activeCommandId function
Previous refactor of expiry logic deleted the activeCommandId() function needed by the copy button handler, causing ReferenceError on click.
1 parent 2a0a426 commit 2eb3157

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

server/static/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,13 @@
257257
});
258258
$("connect-tip").innerHTML = TIPS[TAB];
259259
}
260+
function activeCommandId() {
261+
return TAB === "win"
262+
? "cmd-win"
263+
: TAB === "router"
264+
? "cmd-router"
265+
: "cmd-unix";
266+
}
260267
function isExpired(s) {
261268
return s.expired || Date.now() >= Date.parse(s.expires_at);
262269
}

0 commit comments

Comments
 (0)