Add missing semicolons in devtools extension docs
This commit is contained in:
parent
b4790a7531
commit
a6a5d50c3f
1 changed files with 2 additions and 2 deletions
|
@ -20,14 +20,14 @@ Then you can load the extension in Electron by opening devtools in any window,
|
||||||
and then running the following code in the devtools console:
|
and then running the following code in the devtools console:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
require('remote').require('browser-window').addDevToolsExtension('/some-directory/react-devtools')
|
require('remote').require('browser-window').addDevToolsExtension('/some-directory/react-devtools');
|
||||||
```
|
```
|
||||||
|
|
||||||
To unload the extension, you can call `BrowserWindow.removeDevToolsExtension`
|
To unload the extension, you can call `BrowserWindow.removeDevToolsExtension`
|
||||||
API with its name and it will not load the next time you open the devtools:
|
API with its name and it will not load the next time you open the devtools:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
require('remote').require('browser-window').removeDevToolsExtension('React Developer Tools')
|
require('remote').require('browser-window').removeDevToolsExtension('React Developer Tools');
|
||||||
```
|
```
|
||||||
|
|
||||||
## Format of devtools extension
|
## Format of devtools extension
|
||||||
|
|
Loading…
Add table
Reference in a new issue