try-catch console.timeEnd()

If user refreshes after renderer crashes, the this line throws an
exception
This commit is contained in:
Feross Aboukhadijeh
2016-04-04 20:40:39 -07:00
parent 65a3443e7d
commit 3b805f6cc3

View File

@@ -22,7 +22,7 @@ function init () {
app.emit('ipcReady')
setTimeout(function () {
windows.main.show()
console.timeEnd('init')
try { console.timeEnd('init') } catch (err) {}
}, 50)
})