diff --git a/index.js b/index.js index 151415b0..140c9430 100644 --- a/index.js +++ b/index.js @@ -1,2 +1 @@ -console.time('init') require('./main') diff --git a/main/index.js b/main/index.js index e26d055c..a496dba1 100644 --- a/main/index.js +++ b/main/index.js @@ -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) { diff --git a/main/ipc.js b/main/ipc.js index dca4a6ac..e5b0a3a8 100644 --- a/main/ipc.js +++ b/main/ipc.js @@ -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) {