From: Philipp A. Date: Sun, 11 Oct 2015 13:18:27 +0000 (+0200) Subject: fixed devtools instructions X-Git-Tag: v0.33.8~10^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=36bbf5d51fe249fd02ceef359eb9eeac5d730c62;p=electron.git fixed devtools instructions --- diff --git a/docs/tutorial/devtools-extension.md b/docs/tutorial/devtools-extension.md index e9466f14..20ba7031 100644 --- a/docs/tutorial/devtools-extension.md +++ b/docs/tutorial/devtools-extension.md @@ -16,11 +16,13 @@ $ cd /some-directory $ git clone --recursive https://github.com/facebook/react-devtools.git ``` +Follow the instructions in [`react-devtools/shells/chrome/Readme.md`](https://github.com/facebook/react-devtools/blob/master/shells/chrome/Readme.md) to build the extension. + Then you can load the extension in Electron by opening DevTools in any window, and running the following code in the DevTools console: ```javascript -require('remote').require('browser-window').addDevToolsExtension('/some-directory/react-devtools'); +require('remote').require('browser-window').addDevToolsExtension('/some-directory/react-devtools/shells/chrome'); ``` To unload the extension, you can call the `BrowserWindow.removeDevToolsExtension`