From 12cc994460d8df85ab9d63dbce51020ca008f772 Mon Sep 17 00:00:00 2001 From: Petr Balashov Date: Tue, 28 Mar 2017 12:56:29 +0200 Subject: [PATCH] added missing loadingWindow check in defered app quit --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 3890f1d..b272240 100644 --- a/main.js +++ b/main.js @@ -217,7 +217,8 @@ function createLoadingWindow() { /* the user only tried to close the window */ closeAppAfterLoading = true; e.preventDefault(); - loadingWindow.hide(); + if (loadingWindow) + loadingWindow.hide(); } });