summaryrefslogtreecommitdiffstats
path: root/web/play/src/main.ts
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-08 03:37:19 +0100
committersalmonik <salmonik@tuta.io>2026-11-08 03:37:19 +0100
commit7ebf8c7876b9540843d2635baf55ca4061267e40 (patch)
tree3444f06cc3386285ae5d3b6e0f916b5ec7fd6f93 /web/play/src/main.ts
parentcrash: show and verify the revealed seed in the TUI and GUI (diff)
downloadzagan-bet-7ebf8c7876b9540843d2635baf55ca4061267e40.tar.gz
zagan-bet-7ebf8c7876b9540843d2635baf55ca4061267e40.zip
web: show the account number and stop reel spin on an error
Also documents the __Host- cookie prefix used on HTTPS.
Diffstat (limited to '')
-rw-r--r--web/play/src/main.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/play/src/main.ts b/web/play/src/main.ts
index 2dd3ce9..15eecf5 100644
--- a/web/play/src/main.ts
+++ b/web/play/src/main.ts
@@ -19,6 +19,7 @@ const gameBoard = byId("game-board");
19const gameSide = byId("game-side"); 19const gameSide = byId("game-side");
20const gameTitle = byId("game-title"); 20const gameTitle = byId("game-title");
21const gameBadge = byId("game-badge"); 21const gameBadge = byId("game-badge");
22const lobbyAccount = byId("lobby-account");
22const historyBody = byId("history-body"); 23const historyBody = byId("history-body");
23const authForm = byId<HTMLFormElement>("auth-form"); 24const authForm = byId<HTMLFormElement>("auth-form");
24const authUser = byId<HTMLInputElement>("auth-user"); 25const authUser = byId<HTMLInputElement>("auth-user");
@@ -226,6 +227,7 @@ function badge(view: View): string {
226} 227}
227 228
228function renderLobby(lobby: View): void { 229function renderLobby(lobby: View): void {
230 lobbyAccount.textContent = lobby.account ? `Account ${lobby.account}` : "";
229 gameGrid.replaceChildren(); 231 gameGrid.replaceChildren();
230 const list: [string, string][] = lobby.games ?? []; 232 const list: [string, string][] = lobby.games ?? [];
231 for (const [id, name] of list) { 233 for (const [id, name] of list) {