only hide the dock if on OS X

This commit is contained in:
Stephen Birarda 2015-12-29 18:18:18 -08:00
parent fd4b949fdc
commit 9065a49d05

View file

@ -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');