Skip to content

Glossary: Desktop Apps with Electron and Tauri

contextBridge

Also written: contextBridge.exposeInMainWorld, exposeInMainWorld

The one door between the preload and the page. `exposeInMainWorld("till", api)` copies an API object into the page as `window.till`.

Where the book teaches it

Related terms

Preload scriptContext isolation