MCPcopy Create free account
hub / github.com/block/buzz / getOverrides

Function getOverrides

desktop/src/shared/features/store.ts:17–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16/** Read all user overrides from localStorage */
17export function getOverrides(): FeatureOverrides {
18 try {
19 const raw = window.localStorage.getItem(OVERRIDES_KEY);
20 return raw ? (JSON.parse(raw) as FeatureOverrides) : {};
21 } catch {
22 return {};
23 }
24}
25
26/** Persist a single feature override */
27export function setOverride(featureId: string, enabled: boolean): void {

Callers 3

getSnapshotFunction · 0.90
setOverrideFunction · 0.85
clearOverrideFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected