Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
45
export
const
isSystemDarkModeEnabled = (): boolean => (__TEST__ && typeof override ===
'boolean'
) ? override : (query || matchMedia(
'(prefers-color-scheme: dark)'
)).matches;
Callers
8
parse
Function · 0.90
sendConnectionOrResumeMessage
Function · 0.90
index.ts
File · 0.90
updateEventListeners
Function · 0.90
runCheck
Function · 0.90
runDarkThemeDetector
Function · 0.90
index.ts
File · 0.90
updateAutoState
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected