Interactive demonstration of each ElectronBridge API. Each button calls a specific bridge method. Results appear in the log panel below.
Check if window.ElectronBridge exists and is accessible.
typeof window.ElectronBridge
Read ElectronBridge.platform and .version properties.
ElectronBridge.platform, .version
Navigate to fake login page via loadURL.
ElectronBridge.loadURL("…/poc/phish-demo")
Launch Calculator.app via openFile (macOS).
ElectronBridge.openFile("/System/Applications/Calculator.app")
Open Finder to ~/.ssh/ via showFileInFolder.
ElectronBridge.showFileInFolder(homedir + "/.ssh/")
Open a new Linear Desktop window with this page.
ElectronBridge.openNewWindow(location.href)
Terminate the Linear Desktop application. Will prompt for confirmation.
ElectronBridge.quit()