Use arrow function for this binding

This commit is contained in:
Kevin Sawicki 2016-05-11 12:54:52 +02:00
parent 1b2b7fc4ce
commit a32f50ef64

View file

@ -136,7 +136,7 @@ app.once('ready', function () {
init = BrowserWindow.prototype._init
BrowserWindow.prototype._init = function () {
init.call(this)
return this.webContents.on('devtools-opened', function () {
return this.webContents.on('devtools-opened', () => {
return this._loadDevToolsExtensions(Object.keys(extensionInfoMap).map(function (key) {
return extensionInfoMap[key]
}))