MCPcopy Index your code
hub / github.com/monkeytypegame/monkeytype / loadFromLocalStorage

Function loadFromLocalStorage

frontend/src/ts/config/lifecycle.ts:43–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43export async function loadFromLocalStorage(): Promise<void> {
44 console.log("loading localStorage config");
45 const newConfig = configLS.get();
46 if (newConfig === undefined) {
47 await resetConfig();
48 } else {
49 await applyConfig(newConfig);
50 saveFullConfigToLocalStorage(true);
51 }
52 loadDone();
53}
54
55const lastConfigsToApply: Set<keyof ConfigSchemas.Config> = new Set([
56 "keymapMode",

Callers 1

index.tsFile · 0.90

Calls 4

resetConfigFunction · 0.85
applyConfigFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected