cli player agent added

This commit is contained in:
2026-08-27 17:10:33 +02:00
parent 87cb67cf87
commit 344be19521
10 changed files with 896 additions and 624 deletions
+4 -1
View File
@@ -84,9 +84,12 @@ async function api(path, body) {
}
function showLogin(message = null) {
const wasHidden = elements.loginOverlay.hidden;
if (message !== null) elements.loginError.textContent = message;
elements.loginOverlay.hidden = false;
window.setTimeout(() => elements.loginUsername.focus(), 0);
if (wasHidden) {
window.setTimeout(() => elements.loginUsername.focus(), 0);
}
}
function hideLogin() {