MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / refreshOverrides

Function refreshOverrides

packages/app-core/src/store.ts:7534–7541  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7532
7533/** Re-scan the overrides dir and apply the result. */
7534export function refreshOverrides(): void {
7535 const bridge = typeof window !== 'undefined' ? window.zen : undefined
7536 if (!bridge || typeof bridge.listOverrides !== 'function') return
7537 void bridge
7538 .listOverrides()
7539 .then(applyOverrides)
7540 .catch(() => {})
7541}
7542
7543/**
7544 * Load user overrides from the config dir and keep them in sync as files change.

Callers 2

removeOverrideFunction · 0.90
initOverridesFunction · 0.85

Calls 1

listOverridesMethod · 0.80

Tested by

no test coverage detected