From 3b805f6cc3285dfde5c2af337852cacb38c1ecaf Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 4 Apr 2016 20:40:39 -0700 Subject: [PATCH] try-catch console.timeEnd() If user refreshes after renderer crashes, the this line throws an exception --- main/ipc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/ipc.js b/main/ipc.js index 3393a6c6..d7cbd007 100644 --- a/main/ipc.js +++ b/main/ipc.js @@ -22,7 +22,7 @@ function init () { app.emit('ipcReady') setTimeout(function () { windows.main.show() - console.timeEnd('init') + try { console.timeEnd('init') } catch (err) {} }, 50) })