Browse Source

Fixed the mapNumbers require call

Since mapNumber.js is a file, we should prefix it with "./", otherwise an error is thrown.
Ionică Bizău 9 years ago
parent
commit
01ed2c4222
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/api/remote.md

+ 1 - 1
docs/api/remote.md

@@ -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;