From 5cacf79bc5ceb82a793b2cc3916f0a8ee4fc14ae Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 13 Nov 2015 22:34:00 +0800 Subject: [PATCH] docs: Document the new style of remote module --- docs/api/menu.md | 4 ++-- docs/api/remote.md | 11 ++++++++++- docs/api/synopsis.md | 2 +- docs/tutorial/devtools-extension.md | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) 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'); ``` -- 2.43.0