mirror of
https://github.com/electron/electron.git
synced 2026-01-24 14:57:58 -05:00
Use arrow function for this binding
This commit is contained in:
@@ -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]
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user