Skip to content

Commit 36bbf5d

Browse files
committed
fixed devtools instructions
1 parent 8012792 commit 36bbf5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/tutorial/devtools-extension.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ $ cd /some-directory
1616
$ git clone --recursive https://github.com/facebook/react-devtools.git
1717
```
1818

19+
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.
20+
1921
Then you can load the extension in Electron by opening DevTools in any window,
2022
and running the following code in the DevTools console:
2123

2224
```javascript
23-
require('remote').require('browser-window').addDevToolsExtension('/some-directory/react-devtools');
25+
require('remote').require('browser-window').addDevToolsExtension('/some-directory/react-devtools/shells/chrome');
2426
```
2527

2628
To unload the extension, you can call the `BrowserWindow.removeDevToolsExtension`

0 commit comments

Comments
 (0)