()
| 7532 | |
| 7533 | /** Re-scan the overrides dir and apply the result. */ |
| 7534 | export 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. |
no test coverage detected