{"action":"opened","issue":{"url":"https://api.github.com/repos/electron/electron/issues/5960","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/5960/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/5960/comments","events_url":"https://api.github.com/repos/electron/electron/issues/5960/events","html_url":"https://github.com/electron/electron/issues/5960","id":159416218,"number":5960,"title":"installedDevToolsExtensions() API","user":{"login":"davej","id":26971,"avatar_url":"https://avatars.githubusercontent.com/u/26971?v=3","gravatar_id":"","url":"https://api.github.com/users/davej","html_url":"https://github.com/davej","followers_url":"https://api.github.com/users/davej/followers","following_url":"https://api.github.com/users/davej/following{/other_user}","gists_url":"https://api.github.com/users/davej/gists{/gist_id}","starred_url":"https://api.github.com/users/davej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davej/subscriptions","organizations_url":"https://api.github.com/users/davej/orgs","repos_url":"https://api.github.com/users/davej/repos","events_url":"https://api.github.com/users/davej/events{/privacy}","received_events_url":"https://api.github.com/users/davej/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-09T14:04:31Z","updated_at":"2016-06-09T14:04:31Z","closed_at":null,"body":"Libraries like `electron-debug` programatically add a devtools extension (https://github.com/sindresorhus/electron-debug/pull/36). This works fine but on subsequent loads it prints the following to console:\r\n\r\n```\r\nAttempted to load extension \"devtron\", but extension was already loaded!\r\n```\r\n\r\nNo big problem but it clutters up the console. A suggested alternative would be to check if the devtool already exists before trying to install it. Here are two possible APIs which could work:\r\n\r\n```js\r\nBrowserWindow.installedDevToolsExtensions(); // -> ['devtron', 'React Developer Tools'];\r\n// or\r\nBrowserWindow.isDevToolExtensionInstalled('devtron'); // -> `true`\r\n```\r\n\r\n* Electron version: 1.2.1"}}
{"actor":{"display_login":"davej"}}