1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-24 12:06:15 +01:00

null checks

This commit is contained in:
Kyle Spearrin 2018-07-23 17:15:23 -04:00
parent 0b2fab43d5
commit bbcbd6d119

View File

@ -59,9 +59,9 @@ export class TwoFactorComponent implements OnInit, OnDestroy {
if (this.win != null && this.u2fSupported) { if (this.win != null && this.u2fSupported) {
let customWebVaultUrl: string = null; let customWebVaultUrl: string = null;
if (this.environmentService.baseUrl) { if (this.environmentService.baseUrl != null) {
customWebVaultUrl = this.environmentService.baseUrl; customWebVaultUrl = this.environmentService.baseUrl;
} else if (this.environmentService.webVaultUrl) { } else if (this.environmentService.webVaultUrl != null) {
customWebVaultUrl = this.environmentService.webVaultUrl; customWebVaultUrl = this.environmentService.webVaultUrl;
} }