docs: add missing ipcRenderer require to example code (#37134)
This commit is contained in:
parent
9c0dcaf36b
commit
9ec13afeaf
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue