9 lines · 365 B · TypeScript
RawDownload
/** * Module-level handle to the desktop preview bridge. * * Resolved once at import time so React hooks don't pay for repeated * `window.desktopBridge?.preview` lookups on every render. `null` on the web * build where there's no Electron host. */export const previewBridge =  typeof window === "undefined" ? null : (window.desktopBridge?.preview ?? null);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t