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

Function getZenBridge

packages/bridge-contract/src/bridge.ts:309–314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

307}
308
309export 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
316declare global {
317 interface Window {

Callers 2

SettingsModalFunction · 0.90
useAppUpdateStateFunction · 0.90

Calls 1

getWindowHostFunction · 0.85

Tested by

no test coverage detected