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

Method applyStaticThemes

src/background/devtools.ts:278–284  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

276 }
277
278 private static applyStaticThemes(text: string) {
279 const formatted = formatStaticThemes(parseStaticThemes(text));
280 ConfigManager.overrides.staticThemes = formatted;
281 ConfigManager.handleStaticThemes();
282 DevTools.saveStaticThemes(formatted);
283 DevTools.onChange();
284 }
285}

Callers

nothing calls this directly

Calls 5

formatStaticThemesFunction · 0.90
parseStaticThemesFunction · 0.90
handleStaticThemesMethod · 0.80
saveStaticThemesMethod · 0.80
onChangeMethod · 0.80

Tested by

no test coverage detected