From: Cheng Zhao Date: Fri, 13 Nov 2015 14:34:00 +0000 (+0800) Subject: docs: Document the new style of remote module X-Git-Tag: v0.35.0~7^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=5cacf79bc5ceb82a793b2cc3916f0a8ee4fc14ae;p=electron.git docs: Document the new style of remote module --- diff --git a/docs/api/menu.md b/docs/api/menu.md index c947f36d..1d819682 100644 --- a/docs/api/menu.md +++ b/docs/api/menu.md @@ -17,8 +17,8 @@ the user right clicks the page: diff --git a/docs/tutorial/devtools-extension.md b/docs/tutorial/devtools-extension.md index 258fb419..7c7ea7d6 100644 --- a/docs/tutorial/devtools-extension.md +++ b/docs/tutorial/devtools-extension.md @@ -24,7 +24,7 @@ Then you can load the extension in Electron by opening DevTools in any window, and running the following code in the DevTools console: ```javascript -const BrowserWindow = require('electron').remote.require('electron').BrowserWindow; +const BrowserWindow = require('electron').remote.BrowserWindow; BrowserWindow.addDevToolsExtension('/some-directory/react-devtools/shells/chrome'); ```