preload

Exposes window.wvbElectron, the electron transport that @wvb/bridge expects.

Exposes window.wvbElectron, the electron transport that @wvb/bridge expects. To use bridges in renderer process, call this function in preload script.

View source ↗

function preload(): void;

Returns

void

Examples

// preload.ts
import { preload } from '@wvb/electron/preload';

preload();

On this page