aboutsummaryrefslogtreecommitdiffstats
path: root/static/modules/xbox.js
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-16 17:31:03 +0100
committerDanilo M. <danix@danix.xyz>2026-11-16 17:31:03 +0100
commit26b2f3255dea0ee13c562ffcfd8d641fd976d5f8 (patch)
treed984fb4d08878b2ad7858f2c582707409952f9f0 /static/modules/xbox.js
parentdb13056723c0c13fcf9ea98ed258a619f9654ab8 (diff)
downloaddeck-it-26b2f3255dea0ee13c562ffcfd8d641fd976d5f8.tar.gz
deck-it-26b2f3255dea0ee13c562ffcfd8d641fd976d5f8.zip
fix(xbox): a refused console list no longer blanks the tab; tab icon
xccs answers 403 from its gateway while every other Xbox Live endpoint answers, and that one failure marked the whole tab offline. The console list now fails on its own, the tab says console control is unavailable, and the rest reads. The Xbox tab gets the Xbox glyph like the others. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/modules/xbox.js')
-rw-r--r--static/modules/xbox.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/static/modules/xbox.js b/static/modules/xbox.js
index ec4a14a..65aa7f7 100644
--- a/static/modules/xbox.js
+++ b/static/modules/xbox.js
@@ -213,6 +213,9 @@ function render(box, st) {
const top = h("div", "xb-top");
if (st.playing) top.append(nowPlaying(st));
for (const c of st.consoles ?? []) top.append(consoleCard(c));
+ if (!st.consoles?.length && st.reason?.startsWith("consoles")) {
+ top.append(h("div", "xb-stale", "Console control is unavailable: Xbox Live refused the console list."));
+ }
box.append(top);
box.append(h("div", "xb-section", "Recent games"));