Theo Brownerenames5120f7f9 months agoHistory
8 lines · 368 B · TypeScript
RawDownload
/** * True when running inside the Electron preload bridge, false in a regular browser. * The preload script sets window.nativeApi via contextBridge before any web-app * code executes, so this is reliable at module load time. */export const isElectron =  typeof window !== "undefined" &&  (window.desktopBridge !== undefined || window.nativeApi !== undefined);

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