MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / getDesktopBridge

Function getDesktopBridge

src/lib/DesktopBridge.ts:6–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4}
5
6export function getDesktopBridge(): DesktopBridge | null {
7 if (typeof window.electron === 'object') return window.electron as DesktopBridge;
8 if (typeof window.electrobun === 'object') return window.electrobun as DesktopBridge;
9 return null;
10}

Callers 3

bindMethod · 0.90
didMountMethod · 0.90
setupStorageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected