Doc getDevToolsExtensions

This commit is contained in:
Kevin Sawicki 2016-06-10 09:29:26 -07:00
parent 1f245d5ff6
commit 2804272c7d

View file

@ -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`.
### `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