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

Function handleColorScheme

src/api/index.ts:48–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46};
47
48function handleColorScheme(): void {
49 if (darkScheme?.matches) {
50 enable(store.themeOptions, store.fixes);
51 } else {
52 disable();
53 }
54}
55
56export function auto(themeOptions: Partial<Theme> | false = {}, fixes: DynamicThemeFix | null = null): void {
57 if (themeOptions) {

Callers 1

autoFunction · 0.85

Calls 2

enableFunction · 0.85
disableFunction · 0.85

Tested by

no test coverage detected