Doc getDevToolsExtensions
This commit is contained in:
parent
1f245d5ff6
commit
2804272c7d
1 changed files with 8 additions and 3 deletions
|
@ -396,11 +396,16 @@ Method will also not return if the extension's manifest is missing or incomplete
|
||||||
|
|
||||||
Remove the DevTools extension whose name is `name`.
|
Remove the DevTools extension whose name is `name`.
|
||||||
|
|
||||||
### `BrowserWindow.isDevToolsExtensionInstalled(name)`
|
### `BrowserWindow.getDevToolsExtensions()`
|
||||||
|
|
||||||
* `name` String
|
Returns an Object where the keys are the extension names and each value is
|
||||||
|
an Object containing `name` and `version` properties.
|
||||||
|
|
||||||
Returns `true` if the named DevTools extension is installed, `false` otherwise.
|
To check if a DevTools extension is installed you can run the following:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
let installed = BrowserWindow.getDevToolsExtesion().hasOwnProperty('devtron')
|
||||||
|
```
|
||||||
|
|
||||||
## Instance Properties
|
## Instance Properties
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue