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

Function readConfigFromBridge

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

Source from the content-addressed store, hash-verified

896let configFileHadContent = false
897
898function readConfigFromBridge(): AppConfigPortable | null {
899 try {
900 const bridge = typeof window !== 'undefined' ? window.zen : undefined
901 if (!bridge || typeof bridge.getConfigSync !== 'function') return null
902 return bridge.getConfigSync()
903 } catch {
904 return null
905 }
906}
907
908function loadPrefs(): Prefs {
909 if (cachedInitialPrefs) return cachedInitialPrefs

Callers 1

loadPrefsFunction · 0.85

Calls 1

getConfigSyncMethod · 0.80

Tested by

no test coverage detected