Access remote from electron require
This commit is contained in:
parent
e824603f37
commit
9438ba3aaf
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ exports.withLocalCallback = () => {
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
// renderer process
|
// renderer process
|
||||||
const mapNumbers = require('remote').require('./mapNumbers');
|
const mapNumbers = require('electron').remote.require('./mapNumbers');
|
||||||
|
|
||||||
const withRendererCb = mapNumbers.withRendererCallback(x => x + 1);
|
const withRendererCb = mapNumbers.withRendererCallback(x => x + 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue