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

Function disable

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

Source from the content-addressed store, hash-verified

35}
36
37export function disable(): void {
38 removeDynamicTheme();
39 isDarkReaderEnabled = false;
40}
41
42const darkScheme = typeof(matchMedia) === 'function' ? matchMedia('(prefers-color-scheme: dark)') : undefined;
43let store = {

Callers 2

handleColorSchemeFunction · 0.85
autoFunction · 0.85

Calls 1

removeDynamicThemeFunction · 0.90

Tested by

no test coverage detected