()
| 307 | } |
| 308 | |
| 309 | export function getZenBridge(): ZenBridge { |
| 310 | if (installedBridge) return installedBridge |
| 311 | const windowHost = getWindowHost() |
| 312 | if (windowHost?.zen) return windowHost.zen |
| 313 | throw new Error('Zen bridge has not been installed') |
| 314 | } |
| 315 | |
| 316 | declare global { |
| 317 | interface Window { |
no test coverage detected