mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Allow disabling update mechanism
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
588030141b
commit
ffacf30722
1 changed files with 5 additions and 2 deletions
|
@ -147,6 +147,7 @@ ipcMain.on('ipcCall', async function(ev, payload) {
|
||||||
} else {
|
} else {
|
||||||
mainWindow.focus();
|
mainWindow.focus();
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case 'origin_migrate':
|
case 'origin_migrate':
|
||||||
migratingOrigin = true;
|
migratingOrigin = true;
|
||||||
await migrateFromOldOrigin();
|
await migrateFromOldOrigin();
|
||||||
|
@ -262,10 +263,12 @@ app.on('ready', () => {
|
||||||
path: absTarget,
|
path: absTarget,
|
||||||
});
|
});
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
if (error) console.error('Failed to register protocol')
|
if (error) console.error('Failed to register protocol');
|
||||||
});
|
});
|
||||||
|
|
||||||
if (vectorConfig['update_base_url']) {
|
if (argv['no-update']) {
|
||||||
|
console.log('Auto update disabled via command line flag "--no-update"');
|
||||||
|
} else if (vectorConfig['update_base_url']) {
|
||||||
console.log(`Starting auto update with base URL: ${vectorConfig['update_base_url']}`);
|
console.log(`Starting auto update with base URL: ${vectorConfig['update_base_url']}`);
|
||||||
updater.start(vectorConfig['update_base_url']);
|
updater.start(vectorConfig['update_base_url']);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue