Listen for devtools-opened on webContents
This commit is contained in:
parent
c40fb67890
commit
1b2b7fc4ce
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ app.once('ready', function () {
|
||||||
init = BrowserWindow.prototype._init
|
init = BrowserWindow.prototype._init
|
||||||
BrowserWindow.prototype._init = function () {
|
BrowserWindow.prototype._init = function () {
|
||||||
init.call(this)
|
init.call(this)
|
||||||
return this.on('devtools-opened', function () {
|
return this.webContents.on('devtools-opened', function () {
|
||||||
return this._loadDevToolsExtensions(Object.keys(extensionInfoMap).map(function (key) {
|
return this._loadDevToolsExtensions(Object.keys(extensionInfoMap).map(function (key) {
|
||||||
return extensionInfoMap[key]
|
return extensionInfoMap[key]
|
||||||
}))
|
}))
|
||||||
|
|
Loading…
Reference in a new issue