зеркало из https://github.com/electron/electron.git
docs: add missing ipcRenderer require to example code (#37134)
This commit is contained in:
Родитель
9c0dcaf36b
Коммит
9ec13afeaf
|
@ -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:
|
||||
|
||||
```javascript
|
||||
const { contextBridge } = require('electron')
|
||||
const { contextBridge, ipcRenderer } = require('electron')
|
||||
|
||||
contextBridge.exposeInMainWorld(
|
||||
'electron',
|
||||
|
|
Загрузка…
Ссылка в новой задаче