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(); } });