← Back to index

ElectronBridge — Full Chain Demo

Interactive demonstration of each ElectronBridge API. Each button calls a specific bridge method. Results appear in the log panel below.

Detect Bridge

Check if window.ElectronBridge exists and is accessible.

typeof window.ElectronBridge

Show Platform / Version

Read ElectronBridge.platform and .version properties.

ElectronBridge.platform, .version

Phishing Demo

Navigate to fake login page via loadURL.

ElectronBridge.loadURL("…/poc/phish-demo")

Open Calculator

Launch Calculator.app via openFile (macOS).

ElectronBridge.openFile("/System/Applications/Calculator.app")

Reveal .ssh Directory

Open Finder to ~/.ssh/ via showFileInFolder.

ElectronBridge.showFileInFolder(homedir + "/.ssh/")

Open New Window

Open a new Linear Desktop window with this page.

ElectronBridge.openNewWindow(location.href)

Quit Application

Terminate the Linear Desktop application. Will prompt for confirmation.

ElectronBridge.quit()

Event Log