Access remote from electron require in translated doc
This commit is contained in:
parent
9438ba3aaf
commit
5e88abed7e
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ exports.withLocalCallback = () => {
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
// 렌더러 프로세스
|
// 렌더러 프로세스
|
||||||
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