Call loadExtension from addDevToolsExtension

This commit is contained in:
Kevin Sawicki 2016-06-17 14:53:51 -07:00
parent 9afff89748
commit df22082110

View file

@ -352,6 +352,7 @@ app.once('ready', function () {
BrowserWindow.addDevToolsExtension = function (srcDirectory) {
const manifest = getManifestFromPath(srcDirectory)
if (manifest) {
loadExtension(manifest)
for (const webContents of getAllWebContents()) {
if (isWindowOrWebView(webContents)) {
loadDevToolsExtensions(webContents, [manifest])