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

Method init

src/background/devtools.ts:99–107  ·  view source on GitHub ↗
(onChange: () => void)

Source from the content-addressed store, hash-verified

97 private static store: DevToolsStorage;
98
99 static async init(onChange: () => void): Promise<void> {
100 if (typeof chrome.storage.local !== 'undefined' && chrome.storage.local !== null) {
101 DevTools.store = new PersistentStorageWrapper();
102 } else {
103 DevTools.store = new TempStorage();
104 }
105 DevTools.onChange = onChange;
106 await DevTools.loadConfigOverrides();
107 }
108
109 private static KEY_DETECTOR = 'dev_detector_hints';
110 private static KEY_DYNAMIC = 'dev_dynamic_theme_fixes';

Callers

nothing calls this directly

Calls 1

loadConfigOverridesMethod · 0.80

Tested by

no test coverage detected