Access remote from electron require

This commit is contained in:
Kevin Sawicki 2016-06-10 10:24:35 -07:00
parent e824603f37
commit 9438ba3aaf

View file

@ -80,7 +80,7 @@ exports.withLocalCallback = () => {
```javascript
// renderer process
const mapNumbers = require('remote').require('./mapNumbers');
const mapNumbers = require('electron').remote.require('./mapNumbers');
const withRendererCb = mapNumbers.withRendererCallback(x => x + 1);