diff --git a/electron.js b/electron.js index f9c47fa..453d343 100644 --- a/electron.js +++ b/electron.js @@ -74,6 +74,10 @@ function createWindow() { } }); + if ((os.platform() === 'darwin') && launchHidden) { + app.dock.hide(); + } + // and load the index.html of the app. const startUrl = process.env.ELECTRON_START_URL || url.format({ pathname: path.join(__dirname, '/build/index.html'), @@ -175,7 +179,7 @@ if (!instanceLock) { } else { app.on('second-instance', () => { if (mainWindow) { - setWindowVisibility(true, true); + setWindowVisibility(true); } });