standardize by hand

This commit is contained in:
Zeke Sikelianos 2016-03-28 17:40:40 -07:00 committed by Kevin Sawicki
parent e6698102c9
commit 2c3cacdc08
8 changed files with 16 additions and 15 deletions

View file

@ -71,7 +71,8 @@ app.on('will-quit', function () {
// We can not use protocol or BrowserWindow until app is ready.
app.once('ready', function () {
var BrowserWindow, chromeExtensionHandler, i, init, len, protocol, srcDirectory
protocol = electron.protocol, BrowserWindow = electron.BrowserWindow
protocol = electron.protocol
BrowserWindow = electron.BrowserWindow
// Load persisted extensions.
loadedExtensionsPath = path.join(app.getPath('userData'), 'DevTools Extensions')
@ -133,7 +134,7 @@ app.once('ready', function () {
// Load persisted extensions when devtools is opened.
init = BrowserWindow.prototype._init
return BrowserWindow.prototype._init = function () {
BrowserWindow.prototype._init = function () {
init.call(this)
return this.on('devtools-opened', function () {
return this._loadDevToolsExtensions(Object.keys(extensionInfoMap).map(function (key) {