MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / initTheme

Function initTheme

Support/SingleFileLibs/javascript/app.js:107–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 }
106
107 function initTheme() {
108 const stored = localStorage.getItem('scl_theme');
109 if (stored) return setTheme(stored === 'dark');
110 const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
111 setTheme(prefersDark);
112 }
113
114 // Network helpers
115 function authHeaders() {

Callers 1

app.jsFile · 0.85

Calls 1

setThemeFunction · 0.85

Tested by

no test coverage detected