change to environmentService.getWebVaultUrl (#162)

This commit is contained in:
Kyle Spearrin 2020-09-03 10:35:24 -04:00 committed by GitHub
parent 700e945008
commit bffec57e02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -242,8 +242,10 @@ export class LoginCommand {
}
});
let foundPort = false;
const webUrl = this.environmentService.webVaultUrl == null ? 'https://vault.bitwarden.com' :
this.environmentService.webVaultUrl;
let webUrl = this.environmentService.getWebVaultUrl();
if (webUrl == null) {
webUrl = 'https://vault.bitwarden.com';
}
for (let port = 8065; port <= 8070; port++) {
try {
this.ssoRedirectUri = 'http://localhost:' + port;