MCPcopy
hub / github.com/darkreader/darkreader / notifyOfColorScheme

Function notifyOfColorScheme

src/inject/color-scheme-watcher.ts:42–44  ·  view source on GitHub ↗
(isDark: boolean)

Source from the content-addressed store, hash-verified

40}
41
42function notifyOfColorScheme(isDark: boolean): void {
43 sendMessage({type: MessageTypeCStoBG.COLOR_SCHEME_CHANGE, data: {isDark}});
44}
45
46function updateEventListeners(): void {
47 notifyOfColorScheme(isSystemDarkModeEnabled());

Callers 1

updateEventListenersFunction · 0.85

Calls 1

sendMessageFunction · 0.70

Tested by

no test coverage detected