From: Ionică Bizău Date: Thu, 17 Sep 2015 09:24:12 +0000 (+0300) Subject: Fixed the mapNumbers require call X-Git-Tag: v0.33.1~16^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=01ed2c4222bf77c2592dcd234d8c99a8636497cc;p=electron.git Fixed the mapNumbers require call Since mapNumber.js is a file, we should prefix it with "./", otherwise an error is thrown. --- diff --git a/docs/api/remote.md b/docs/api/remote.md index 1c5c831a..55893c65 100644 --- a/docs/api/remote.md +++ b/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;