MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / update

Function update

webapp/_webapp/src/hooks/useThemeSync.ts:41–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 // themeMode === "auto": follow system
40 const media = window.matchMedia("(prefers-color-scheme: dark)");
41 const update = () => applyTheme(media.matches);
42 update();
43 media.addEventListener("change", update);
44 return () => media.removeEventListener("change", update);

Callers 1

useThemeSyncFunction · 0.70

Calls 1

applyThemeFunction · 0.85

Tested by

no test coverage detected