Built from lineage/orgchain main (6acc319). Replaces the tree build (2c613a7), which stays in history and as branch `tree` on lineage/orgchain, to be compared and folded in. /orgchain/* gets a stricter CSP (connect-src 'none', no frames, no blob images: the app makes no requests); the recursive-preview rule goes with the preview. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H4upF5LVwmPDDqrhdUfnXh
3 lines
303 B
JavaScript
3 lines
303 B
JavaScript
// Runs before first paint (a plain script, so the strict CSP still applies): apply a saved theme without a flash.
|
|
try { const t = localStorage.getItem('orgchain-theme'); if (t === 'light' || t === 'dark') document.documentElement.dataset.theme = t; } catch { /* storage blocked: follow the system */ }
|