diff options
Diffstat (limited to 'static')
| -rw-r--r-- | static/app.js | 2 | ||||
| -rw-r--r-- | static/modules/xbox.js | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/static/app.js b/static/app.js index bb30814..3249d64 100644 --- a/static/app.js +++ b/static/app.js @@ -29,7 +29,7 @@ const tabs = {}; // Tab icons, glyphs in the Nerd Font the server serves, or a brand logo from // static/logos; a tab with neither shows its name. The name also shows next // to the active one. -const TAB_ICONS = { Dashboard: "\uf0e4", Windows: "\uf2d2", Assistant: "\uf086", K1C: "\u{f0e5b}", VMs: "\uf233" }; +const TAB_ICONS = { Dashboard: "\uf0e4", Windows: "\uf2d2", Assistant: "\uf086", K1C: "\u{f0e5b}", VMs: "\uf233", Xbox: "\u{F05B9}" }; const TAB_LOGOS = { OBS: "obs" }; function ensureTab(name) { 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")); |
