SDA-4159 C2 version bugfix for daily

This commit is contained in:
sbenmoussati 2023-04-13 16:23:58 +02:00 committed by Salah Benmoussati
parent db872a5c17
commit 624d48f2e4
2 changed files with 5 additions and 3 deletions

View File

@ -183,10 +183,10 @@ class VersionHandler {
/* Get SFE version */
let urlSfeVersion: string;
let newUrlSfeVersion: string;
urlSfeVersion = mainUrl?.includes('/daily/')
urlSfeVersion = mainUrl?.includes('/daily')
? `${protocol}//${hostname}/bff-daily/daily/version.json`
: `${protocol}//${hostname}/client-bff/version.json`;
newUrlSfeVersion = mainUrl?.includes('/daily/')
newUrlSfeVersion = mainUrl?.includes('/daily')
? `${protocol}//${hostname}/apps/client2/daily/info`
: `${protocol}//${hostname}/apps/client2/info`;
const sfeVersionInfo: string = mainUrl?.includes('client2')

View File

@ -1141,7 +1141,7 @@ export class WindowHandler {
/**
* Creates a about app window
*/
public createAboutAppWindow(windowName: string): void {
public async createAboutAppWindow(windowName: string): Promise<void> {
// This prevents creating multiple instances of the
// about window
if (didVerifyAndRestoreWindow(this.aboutAppWindow)) {
@ -1176,6 +1176,8 @@ export class WindowHandler {
}
};
await versionHandler.getClientVersion(true, this.url);
if (
this.mainWindow &&
windowExists(this.mainWindow) &&