()
| 896 | let configFileHadContent = false |
| 897 | |
| 898 | function 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 | |
| 908 | function loadPrefs(): Prefs { |
| 909 | if (cachedInitialPrefs) return cachedInitialPrefs |
no test coverage detected