Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015a8P6WMRPeqdpd5VCh6jAy
11 lines
516 B
JavaScript
11 lines
516 B
JavaScript
// Saved theme, language and density applied before the first paint (no flash).
|
|
// External file: the Content-Security-Policy forbids inline scripts.
|
|
try {
|
|
var t = localStorage.getItem('confsync.theme');
|
|
if (t === 'light' || t === 'dark') document.documentElement.dataset.theme = t;
|
|
var l = localStorage.getItem('confsync.lang');
|
|
if (l) document.documentElement.lang = l;
|
|
var d = localStorage.getItem('confsync.density');
|
|
if (d === 'compact') document.documentElement.dataset.density = d;
|
|
} catch (e) {}
|