MCPcopy
hub / github.com/darkreader/darkreader / getStaticThemesText

Method getStaticThemesText

src/background/devtools.ts:261–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259 }
260
261 static async getStaticThemesText(): Promise<string> {
262 let rawThemes = await DevTools.getSavedStaticThemes();
263 if (!rawThemes) {
264 await ConfigManager.load();
265 rawThemes = ConfigManager.STATIC_THEMES_RAW || '';
266 }
267 const themes = parseStaticThemes(rawThemes);
268 return formatStaticThemes(themes);
269 }
270
271 private static resetStaticThemes(): void {
272 DevTools.store.remove(DevTools.KEY_STATIC);

Callers 1

collectDevToolsDataMethod · 0.80

Calls 4

parseStaticThemesFunction · 0.90
formatStaticThemesFunction · 0.90
getSavedStaticThemesMethod · 0.80
loadMethod · 0.80

Tested by

no test coverage detected