Access remote from electron require in translated doc

This commit is contained in:
Kevin Sawicki 2016-06-10 10:27:25 -07:00
parent 9438ba3aaf
commit 5e88abed7e

View file

@ -76,7 +76,7 @@ exports.withLocalCallback = () => {
```javascript
// 렌더러 프로세스
const mapNumbers = require('remote').require('./mapNumbers');
const mapNumbers = require('electron').remote.require('./mapNumbers');
const withRendererCb = mapNumbers.withRendererCallback(x => x + 1);