mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 03:05:51 +03:00
Merge pull request #3641 from t3chguy/t3chguy/electron_launch_hidden
add command line arg (--hidden) for electron app
This commit is contained in:
commit
fb3ef89b50
1 changed files with 6 additions and 3 deletions
|
@ -201,9 +201,12 @@ electron.app.on('ready', () => {
|
||||||
brand: vectorConfig.brand || 'Riot'
|
brand: vectorConfig.brand || 'Riot'
|
||||||
});
|
});
|
||||||
|
|
||||||
mainWindow.once('ready-to-show', () => {
|
if (!process.argv.includes('--hidden')) {
|
||||||
mainWindow.show();
|
mainWindow.once('ready-to-show', () => {
|
||||||
});
|
mainWindow.show();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
mainWindow.on('closed', () => {
|
mainWindow.on('closed', () => {
|
||||||
mainWindow = null;
|
mainWindow = null;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue