MCPcopy
hub / github.com/darkreader/darkreader / loadSettings

Method loadSettings

src/background/user-storage.ts:20–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 static settings: Readonly<UserSettings>;
19
20 static async loadSettings(): Promise<void> {
21 if (!UserStorage.settings) {
22 UserStorage.settings = await UserStorage.loadSettingsFromStorage();
23 }
24 }
25
26 private static fillDefaults(settings: UserSettings) {
27 settings.theme = {...DEFAULT_THEME, ...settings.theme};

Callers 3

startMethod · 0.80
loadDataMethod · 0.80
loadMethod · 0.80

Calls 1

Tested by

no test coverage detected