This commit is contained in:
Scott E. Graves
2018-12-16 00:41:43 -06:00
parent a7a810ea12
commit dc6a622037

View File

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