From 12940ac2301f84363e2ffef49fb9e9bc692ef531 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Tue, 3 Jul 2018 00:57:01 -0400 Subject: [PATCH] Check rendererWindow before calling show --- src/main/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/index.js b/src/main/index.js index 17b6361b7..4b60ce0a1 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -83,7 +83,9 @@ app.on('ready', async () => { }); app.on('activate', () => { - rendererWindow.show(); + if (rendererWindow) { + rendererWindow.show(); + } }); app.on('will-quit', event => {