move console.time/timeEnd to same file
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
console.time('init')
|
||||
|
||||
var electron = require('electron')
|
||||
|
||||
var app = electron.app
|
||||
@@ -67,6 +69,7 @@ function init () {
|
||||
app.on('ipcReady', function () {
|
||||
log('Command line args:', argv)
|
||||
processArgv(argv)
|
||||
console.timeEnd('init')
|
||||
})
|
||||
|
||||
app.on('before-quit', function (e) {
|
||||
|
||||
@@ -25,10 +25,9 @@ var vlcProcess
|
||||
|
||||
function init () {
|
||||
ipcMain.on('ipcReady', function (e) {
|
||||
windows.main.show()
|
||||
app.ipcReady = true
|
||||
app.emit('ipcReady')
|
||||
windows.main.show()
|
||||
console.timeEnd('init')
|
||||
})
|
||||
|
||||
ipcMain.on('ipcReadyWebTorrent', function (e) {
|
||||
|
||||
Reference in New Issue
Block a user