Doc getDevToolsExtensions
authorKevin Sawicki <kevinsawicki@gmail.com>
Fri, 10 Jun 2016 16:29:26 +0000 (09:29 -0700)
committerKevin Sawicki <kevinsawicki@gmail.com>
Fri, 10 Jun 2016 16:29:26 +0000 (09:29 -0700)
docs/api/browser-window.md

index 5fb1fbf..2259d76 100644 (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.
+
+To check if a DevTools extension is installed you can run the following:
 
-Returns `true` if the named DevTools extension is installed, `false` otherwise.
+```javascript
+let installed = BrowserWindow.getDevToolsExtesion().hasOwnProperty('devtron')
+```
 
 ## Instance Properties