MCPcopy Index your code
hub / github.com/darkreader/darkreader / isSystemDarkModeEnabled

Function isSystemDarkModeEnabled

src/utils/media-query.ts:45–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45export const isSystemDarkModeEnabled = (): boolean => (__TEST__ && typeof override === 'boolean') ? override : (query || matchMedia('(prefers-color-scheme: dark)')).matches;

Callers 8

parseFunction · 0.90
index.tsFile · 0.90
updateEventListenersFunction · 0.90
runCheckFunction · 0.90
runDarkThemeDetectorFunction · 0.90
index.tsFile · 0.90
updateAutoStateMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected