Installable PWA showing rigs, seats (working, idle, waiting for an answer), queue items and recent commits; seat screens with replies; push through ntfy. Reads state through the rig CLI only, Python standard library, no build step, styled entirely with the shared weirsoe-theme. Claude-Session: https://claude.ai/code/session_01QhLkBGEip8wQdaZ54z4AqJ
4 lines
339 B
JavaScript
4 lines
339 B
JavaScript
// No-flash theme pick (from weirsoe-theme), as a file so the CSP needs no inline script.
|
|
try { document.documentElement.dataset.theme = localStorage.getItem('wt-theme') || 'dark'; } catch (e) { document.documentElement.dataset.theme = 'dark'; }
|
|
if ('serviceWorker' in navigator) navigator.serviceWorker.register('sw.js').catch(() => {});
|