Merge pull request #5490 from electron/webcontents-event
Listen for devtools-opened on webContents
This commit is contained in:
commit
b2d83fd8a8
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
}))
|
||||
|
|
Loading…
Reference in a new issue