Remove BrowserWindow events now on WebContents
This commit is contained in:
parent
f2d8eadf4e
commit
56cd57872c
1 changed files with 0 additions and 11 deletions
|
@ -95,17 +95,6 @@ BrowserWindow.prototype._init = function () {
|
|||
// Notify the creation of the window.
|
||||
app.emit('browser-window-created', {}, this)
|
||||
|
||||
// Be compatible with old APIs.
|
||||
this.webContents.on('devtools-focused', () => {
|
||||
this.emit('devtools-focused')
|
||||
})
|
||||
this.webContents.on('devtools-opened', () => {
|
||||
this.emit('devtools-opened')
|
||||
})
|
||||
this.webContents.on('devtools-closed', () => {
|
||||
this.emit('devtools-closed')
|
||||
})
|
||||
|
||||
Object.defineProperty(this, 'devToolsWebContents', {
|
||||
enumerable: true,
|
||||
configurable: false,
|
||||
|
|
Loading…
Reference in a new issue