mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
add command line arg (--hidden) for electron app
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
15accf33f5
commit
44479f24dd
@ -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 New Issue
Block a user