MCPcopy
hub / github.com/darkreader/darkreader / loadData

Method loadData

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

Source from the content-addressed store, hash-verified

471 }
472
473 private static async loadData() {
474 Extension.init();
475 await Promise.all([
476 Extension.stateManager!.loadState(),
477 UserStorage.loadSettings(),
478 ]);
479 }
480
481 private static onColorSchemeChange = async (isDark: boolean) => {
482 if (Extension.wasLastColorSchemeDark === isDark) {

Callers 5

ExtensionClass · 0.80
collectDataMethod · 0.80
getActiveTabInfoMethod · 0.80
getConnectionMessageMethod · 0.80
onSettingsChangedMethod · 0.80

Calls 4

allMethod · 0.80
loadSettingsMethod · 0.80
initMethod · 0.45
loadStateMethod · 0.45

Tested by

no test coverage detected