diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-08 03:34:38 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-08 03:34:38 +0100 |
| commit | 408fac5c545c4294c81df5fff36b2fed19d7fe55 (patch) | |
| tree | ef5a05d8099a1531f88cd3e5008225ea47910fc4 /web/play/src/types.ts | |
| parent | web: accept the serialized reels array and stop game loops on navigation (diff) | |
| download | zagan-bet-408fac5c545c4294c81df5fff36b2fed19d7fe55.tar.gz zagan-bet-408fac5c545c4294c81df5fff36b2fed19d7fe55.zip | |
web: restore the balance on a refresh into history
The gateway hello now carries the core's last known balance alongside the user, so a refresh on a non-game view does not blank the header before the next INFO reply.
Diffstat (limited to 'web/play/src/types.ts')
| -rw-r--r-- | web/play/src/types.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/play/src/types.ts b/web/play/src/types.ts index e594a0b..ae2c4c7 100644 --- a/web/play/src/types.ts +++ b/web/play/src/types.ts | |||
| @@ -9,6 +9,8 @@ export type Hello = { | |||
| 9 | grace_seconds: number; | 9 | grace_seconds: number; |
| 10 | /** Signed-in user restored after a refresh, if any. */ | 10 | /** Signed-in user restored after a refresh, if any. */ |
| 11 | user?: string | null; | 11 | user?: string | null; |
| 12 | /** Last known balance, for views that do not carry one. */ | ||
| 13 | balance?: number | null; | ||
| 12 | /** Estimated game-server Unix time in milliseconds. */ | 14 | /** Estimated game-server Unix time in milliseconds. */ |
| 13 | time: number; | 15 | time: number; |
| 14 | }; | 16 | }; |
