diff --git a/lib/browser/chrome-extension.js b/lib/browser/chrome-extension.js index 562e77a11509..2056a9b89973 100644 --- a/lib/browser/chrome-extension.js +++ b/lib/browser/chrome-extension.js @@ -136,7 +136,7 @@ app.once('ready', function () { init = BrowserWindow.prototype._init BrowserWindow.prototype._init = function () { init.call(this) - return this.on('devtools-opened', function () { + return this.webContents.on('devtools-opened', () => { return this._loadDevToolsExtensions(Object.keys(extensionInfoMap).map(function (key) { return extensionInfoMap[key] }))