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

Function getWindowHost

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

Source from the content-addressed store, hash-verified

293let installedBridge: ZenBridge | null = null
294
295function getWindowHost(): { zen: ZenBridge } | undefined {
296 const host = globalThis as typeof globalThis & { window?: { zen: ZenBridge } }
297 return typeof host.window === 'object' ? host.window : undefined
298}
299
300export function installZenBridge(bridge: ZenBridge): ZenBridge {
301 installedBridge = bridge

Callers 2

installZenBridgeFunction · 0.85
getZenBridgeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected