From 9065a49d054dabc8af5b04076d7742bd125e2d6a Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 29 Dec 2015 18:18:18 -0800 Subject: [PATCH] only hide the dock if on OS X --- console/src/main.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/console/src/main.js b/console/src/main.js index a14108a69c..84928768d8 100644 --- a/console/src/main.js +++ b/console/src/main.js @@ -176,15 +176,11 @@ var hiddenWindow = null; // This method will be called when Electron has finished // initialization and is ready to create browser windows. app.on('ready', function() { - // create a BrowserWindow so the app launches but don't show it - hiddenWindow = new BrowserWindow({ - icon: APP_ICON, - title: "High Fidelity", - show: false - }); - // hide the dock icon - app.dock.hide() + if (app.dock) { + // hide the dock icon on OS X + app.dock.hide() + } var logPath = path.join(app.getAppPath(), 'logs');