docs: Document the new style of remote module
This commit is contained in:
parent
94e24abb99
commit
5cacf79bc5
4 changed files with 14 additions and 5 deletions
|
@ -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');
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue