MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isDesktopBridge

Function isDesktopBridge

packages/react/src/api/local-auth.tsx:27–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25const DESKTOP_LAUNCH_CACHE_BUST_PARAM = "_executor_desktop_launch";
26
27const isDesktopBridge = (): boolean =>
28 typeof globalThis.window?.executor?.getServerConnection === "function";
29
30const readStoredToken = (): string | null => {
31 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: localStorage can throw (private mode / disabled storage)

Callers 2

bootstrapLocalAuthTokenFunction · 0.85
notifyLocalAuthRequiredFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected