MCPcopy
hub / github.com/darkreader/darkreader / isExtensionSwitchedOn

Method isExtensionSwitchedOn

src/background/extension.ts:144–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142 };
143
144 private static isExtensionSwitchedOn() {
145 return (
146 Extension.autoState === 'turn-on' ||
147 Extension.autoState === 'scheme-dark' ||
148 Extension.autoState === 'scheme-light' ||
149 (Extension.autoState === '' && UserStorage.settings.enabled)
150 );
151 }
152
153 private static updateAutoState() {
154 const {mode, behavior, enabled} = UserStorage.settings.automation;

Callers 6

ExtensionClass · 0.80
collectDataMethod · 0.80
changeSettingsMethod · 0.80
setThemeMethod · 0.80
onAppToggleMethod · 0.80
onSettingsChangedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected