]> khamidou — GitHub mirrors - electron.git/commitdiff
fixed devtools instructions
authorPhilipp A. <flying-sheep@web.de>
Sun, 11 Oct 2015 13:18:27 +0000 (15:18 +0200)
committerPhilipp A. <flying-sheep@web.de>
Sun, 11 Oct 2015 13:18:27 +0000 (15:18 +0200)
docs/tutorial/devtools-extension.md

index e9466f14b64880498ded562952c75d6635181a61..20ba7031d8ad1acd46a39a2858dcefe6aa1cebd4 100644 (file)
@@ -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`