mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
sda-3192 option+command+3 use bff-daily
This commit is contained in:
parent
1386abcf62
commit
a562bb053c
@ -182,9 +182,9 @@ class VersionHandler {
|
|||||||
|
|
||||||
/* Get SFE version */
|
/* Get SFE version */
|
||||||
let urlSfeVersion: string;
|
let urlSfeVersion: string;
|
||||||
if (mainUrl?.includes('/client-bff/')) {
|
if (mainUrl?.includes('bff')) {
|
||||||
urlSfeVersion = mainUrl?.includes('/client-bff/daily/')
|
urlSfeVersion = mainUrl?.includes('/daily/')
|
||||||
? `${protocol}//${hostname}/client-bff/daily/version.json`
|
? `${protocol}//${hostname}/bff-daily/daily/version.json`
|
||||||
: `${protocol}//${hostname}/client-bff/version.json`;
|
: `${protocol}//${hostname}/client-bff/version.json`;
|
||||||
this.versionInfo.sfeClientType = '2.0';
|
this.versionInfo.sfeClientType = '2.0';
|
||||||
} else {
|
} else {
|
||||||
|
@ -948,10 +948,8 @@ export class WindowHandler {
|
|||||||
this.aboutAppWindow.webContents.once('did-finish-load', async () => {
|
this.aboutAppWindow.webContents.once('did-finish-load', async () => {
|
||||||
let client = '';
|
let client = '';
|
||||||
if (this.url && this.url.startsWith('https://corporate.symphony.com')) {
|
if (this.url && this.url.startsWith('https://corporate.symphony.com')) {
|
||||||
const manaPath = 'client-bff';
|
client = this.url.includes('bff')
|
||||||
const daily = 'daily';
|
? this.url.includes('daily')
|
||||||
client = this.url.includes(manaPath)
|
|
||||||
? this.url.includes(daily)
|
|
||||||
? 'Symphony 2.0 - Daily'
|
? 'Symphony 2.0 - Daily'
|
||||||
: 'Symphony 2.0'
|
: 'Symphony 2.0'
|
||||||
: 'Symphony Classic';
|
: 'Symphony Classic';
|
||||||
@ -1960,8 +1958,6 @@ export class WindowHandler {
|
|||||||
this.url = this.globalConfig.url;
|
this.url = this.globalConfig.url;
|
||||||
}
|
}
|
||||||
const parsedUrl = parse(this.url);
|
const parsedUrl = parse(this.url);
|
||||||
const manaPath = 'client-bff';
|
|
||||||
const manaChannel = 'daily';
|
|
||||||
const csrfToken = await this.mainWindow.webContents.executeJavaScript(
|
const csrfToken = await this.mainWindow.webContents.executeJavaScript(
|
||||||
`localStorage.getItem('x-km-csrf-token')`,
|
`localStorage.getItem('x-km-csrf-token')`,
|
||||||
);
|
);
|
||||||
@ -1970,10 +1966,10 @@ export class WindowHandler {
|
|||||||
this.url = this.startUrl + `?x-km-csrf-token=${csrfToken}`;
|
this.url = this.startUrl + `?x-km-csrf-token=${csrfToken}`;
|
||||||
break;
|
break;
|
||||||
case ClientSwitchType.CLIENT_2_0:
|
case ClientSwitchType.CLIENT_2_0:
|
||||||
this.url = `https://${parsedUrl.hostname}/${manaPath}/index.html?x-km-csrf-token=${csrfToken}`;
|
this.url = `https://${parsedUrl.hostname}/client-bff/index.html?x-km-csrf-token=${csrfToken}`;
|
||||||
break;
|
break;
|
||||||
case ClientSwitchType.CLIENT_2_0_DAILY:
|
case ClientSwitchType.CLIENT_2_0_DAILY:
|
||||||
this.url = `https://${parsedUrl.hostname}/${manaPath}/${manaChannel}/index.html?x-km-csrf-token=${csrfToken}`;
|
this.url = `https://${parsedUrl.hostname}/bff-daily/daily/index.html?x-km-csrf-token=${csrfToken}`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
this.url = this.globalConfig.url + `?x-km-csrf-token=${csrfToken}`;
|
this.url = this.globalConfig.url + `?x-km-csrf-token=${csrfToken}`;
|
||||||
|
Loading…
Reference in New Issue
Block a user