MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / onChange

Function onChange

packages/app-core/src/components/QuickCaptureApp.tsx:259–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257 const mql = window.matchMedia('(prefers-color-scheme: dark)')
258 if (prefs.themeMode === 'auto') {
259 const onChange = (): void => applyTheme(prefs)
260 mql.addEventListener('change', onChange)
261 return () => mql.removeEventListener('change', onChange)
262 }

Callers

nothing calls this directly

Calls 1

applyThemeFunction · 0.70

Tested by

no test coverage detected