docs: add missing ipcRenderer require to example code (#37134)

This commit is contained in:
David Sanders 2023-02-05 21:40:16 -08:00 committed by GitHub
parent 9c0dcaf36b
commit 9ec13afeaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ the API become immutable and updates on either side of the bridge do not result
An example of a complex API is shown below: An example of a complex API is shown below:
```javascript ```javascript
const { contextBridge } = require('electron') const { contextBridge, ipcRenderer } = require('electron')
contextBridge.exposeInMainWorld( contextBridge.exposeInMainWorld(
'electron', 'electron',