From 01ed2c4222bf77c2592dcd234d8c99a8636497cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionic=C4=83=20Biz=C4=83u?= Date: Thu, 17 Sep 2015 12:24:12 +0300 Subject: [PATCH] Fixed the mapNumbers require call Since mapNumber.js is a file, we should prefix it with "./", otherwise an error is thrown. --- docs/api/remote.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/remote.md b/docs/api/remote.md index 1c5c831a1790..55893c65f1c4 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;