From 2804272c7da987eaf1a8c724c952132d0c2bd002 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 10 Jun 2016 09:29:26 -0700 Subject: [PATCH] Doc getDevToolsExtensions --- docs/api/browser-window.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 5fb1fbf..2259d76 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -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 -- 2.7.4