Fixed the mapNumbers require call
Since mapNumber.js is a file, we should prefix it with "./", otherwise an error is thrown.
This commit is contained in:
parent
e30dd943db
commit
01ed2c4222
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ exports.withLocalCallback = function() {
|
|||
|
||||
```javascript
|
||||
// renderer process
|
||||
var mapNumbers = require("remote").require("mapNumbers");
|
||||
var mapNumbers = require("remote").require("./mapNumbers");
|
||||
|
||||
var withRendererCb = mapNumbers.withRendererCallback(function(x) {
|
||||
return x + 1;
|
||||
|
|
Loading…
Reference in a new issue