mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-25 02:10:32 -06:00
SDA-4494 - Force welcome screen in user config url is not configured correctly (#2107)
This commit is contained in:
parent
542ead3638
commit
3942361010
@ -287,6 +287,9 @@ export class WindowHandler {
|
||||
(this.globalConfig.url.includes(this.defaultUrl) &&
|
||||
config.isFirstTimeLaunch()) ||
|
||||
!!this.config.enableBrowserLogin;
|
||||
// Force welcome screen if pod url is not configured correctly
|
||||
this.shouldShowWelcomeScreen =
|
||||
!!this.userConfig.url && this.userConfig.url.includes(this.defaultUrl);
|
||||
|
||||
this.windowOpts = {
|
||||
...this.getWindowOpts(
|
||||
@ -596,7 +599,9 @@ export class WindowHandler {
|
||||
if (this.mainWebContents && !this.mainWebContents.isDestroyed()) {
|
||||
// Load welcome screen
|
||||
if (this.shouldShowWelcomeScreen && !this.didShowWelcomeScreen) {
|
||||
const podUrl = this.userConfig.url
|
||||
const podUrl =
|
||||
this.userConfig.url &&
|
||||
!this.userConfig.url.includes(this.defaultUrl)
|
||||
? this.userConfig.url
|
||||
: !this.globalConfig.url.includes(this.defaultUrl)
|
||||
? this.globalConfig.url
|
||||
|
Loading…
Reference in New Issue
Block a user