Files
time/ventures/lineage/orgchain/theme.js
T
teahubxyzandClaude Opus 5.5 afce18a033 lineage: Orgchain v1 (holdings, six verbs, Time) at /orgchain
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
2026-10-14 18:08:48 -07:00

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 */ }