mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 01:11:13 -06:00
SDA-4489 - Use correct url to validate (#2152)
This commit is contained in:
parent
0e7e3b9d64
commit
9901957c65
@ -95,10 +95,8 @@ export class AutoUpdate {
|
|||||||
logger.info(
|
logger.info(
|
||||||
'auto-update-handler: update downloaded and isForceUpdate',
|
'auto-update-handler: update downloaded and isForceUpdate',
|
||||||
);
|
);
|
||||||
// Handle update and restart for macOS
|
// Handle update and restart
|
||||||
if (isMac) {
|
|
||||||
windowHandler.setIsAutoUpdating(true);
|
windowHandler.setIsAutoUpdating(true);
|
||||||
}
|
|
||||||
this.autoUpdater?.quitAndInstall();
|
this.autoUpdater?.quitAndInstall();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -386,10 +384,11 @@ export class AutoUpdate {
|
|||||||
this.finalAutoUpdateChannel = autoUpdateChannel;
|
this.finalAutoUpdateChannel = autoUpdateChannel;
|
||||||
this.installVariant = installVariant;
|
this.installVariant = installVariant;
|
||||||
|
|
||||||
|
const { url: userUrl } = config.getUserConfigFields(['url']);
|
||||||
|
const { url: globalUrl } = config.getGlobalConfigFields(['url']);
|
||||||
|
const url = userUrl ? userUrl : globalUrl;
|
||||||
const isCorp =
|
const isCorp =
|
||||||
(windowHandler?.url &&
|
(url && url.startsWith('https://corporate.symphony.com')) || false;
|
||||||
windowHandler.url.startsWith('https://corporate.symphony.com')) ||
|
|
||||||
false;
|
|
||||||
|
|
||||||
// Corp should keep the ability to get auto-update channel from user config as top prio
|
// Corp should keep the ability to get auto-update channel from user config as top prio
|
||||||
if (isCorp && this.finalAutoUpdateChannel !== UpdateChannel.LATEST) {
|
if (isCorp && this.finalAutoUpdateChannel !== UpdateChannel.LATEST) {
|
||||||
|
Loading…
Reference in New Issue
Block a user