From 75a33228e8aaa6c279aff6f6b79853418a635dd7 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 3 Mar 2016 22:41:42 -0800 Subject: [PATCH] fix back button exception --- main/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/index.js b/main/index.js index 049fbd79..16d3f9dc 100644 --- a/main/index.js +++ b/main/index.js @@ -310,7 +310,9 @@ function setDimensions (dimensions) { function restoreBounds () { electron.ipcRenderer.send('setAspectRatio', 0) - electron.ipcRenderer.send('setBounds', state.view.mainWindowBounds, true) + if (state.view.mainWindowBounds) { + electron.ipcRenderer.send('setBounds', state.view.mainWindowBounds, true) + } } function onError (err) {