- Custom screen share picker for Electron (ScreenSharePicker.tsx) with Aether Drift design: glass-bubble footer, adaptive grid, pill tabs, border-based selection (avoids overflow clipping), hover brightness - Instance URL picker so Electron connects to any Backspace server - System audio loopback on Windows/Linux via desktopCapturer callback - macOS: video-only callback (OS blocks system audio capture) - IPC bridge for screen source enumeration and selection - Purge stale service worker caches on Electron launch
12 lines
339 B
TypeScript
12 lines
339 B
TypeScript
export function isElectron(): boolean {
|
|
return typeof window !== 'undefined' && typeof window.backspace !== 'undefined';
|
|
}
|
|
|
|
export function isElectronMac(): boolean {
|
|
return isElectron() && window.backspace?.platform === 'darwin';
|
|
}
|
|
|
|
export function getElectronAPI(): BackspaceElectronAPI | null {
|
|
return window.backspace ?? null;
|
|
}
|