Remove BrowserWindow events now on WebContents

This commit is contained in:
Kevin Sawicki 2016-05-02 09:32:52 -07:00
parent f2d8eadf4e
commit 56cd57872c

View file

@ -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,