From d4b1130931a430395b4172c28130693cc05c77c0 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 16 Nov 2026 17:17:52 +0100 Subject: feat(xbox): switch to the Xbox tab once per game session Co-Authored-By: Claude Opus 5.5 --- static/app.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'static/app.js') diff --git a/static/app.js b/static/app.js index 5d1688a..bb30814 100644 --- a/static/app.js +++ b/static/app.js @@ -89,10 +89,12 @@ function showTab(name) { // A panel's peek(state) gives seconds when something new turned up: its tab // comes forward that long, then the page goes back, unless touched first. +// Infinity brings it forward to stay, as a page change by hand would. let peek = null; // {back, timer} while a tab is shown on its own function peekTab(name, seconds) { const now = Object.keys(tabs).find((n) => !tabs[n].section.hidden); if (now === name && !peek) return; // already there by choice + if (!Number.isFinite(seconds)) return showTab(name); const back = peek?.back ?? now; showTab(name); peek = { back, timer: setTimeout(() => showTab(back), seconds * 1000) }; -- cgit v1.2.3