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:
Ionică Bizău 2015-09-17 12:24:12 +03:00
parent e30dd943db
commit 01ed2c4222

View file

@ -79,7 +79,7 @@ exports.withLocalCallback = function() {
```javascript ```javascript
// renderer process // renderer process
var mapNumbers = require("remote").require("mapNumbers"); var mapNumbers = require("remote").require("./mapNumbers");
var withRendererCb = mapNumbers.withRendererCallback(function(x) { var withRendererCb = mapNumbers.withRendererCallback(function(x) {
return x + 1; return x + 1;