The window.electronApi global gives the renderer access to Electron-only
functionality through the preload bridge. See ElectronApi for the
full surface.
Only available in the Electron desktop build — window.electronApi is
undefined in the browser/server build and in the standalone (WASM) build,
so always guard calls with if (window.electronApi) from frontend scripts.
The
window.electronApiglobal gives the renderer access to Electron-only functionality through the preload bridge. See ElectronApi for the full surface.Only available in the Electron desktop build —
window.electronApiisundefinedin the browser/server build and in the standalone (WASM) build, so always guard calls withif (window.electronApi)from frontend scripts.