From e9d85190d43c688e7c68faa7e4c44bc98af237d1 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Mon, 30 Nov 2020 12:59:31 -0600 Subject: [PATCH] Use helper method to get web vault url (#1476) The helper method yields either 1) the configured web vault url or 2) the configured server url. If neither are configured, null is returned, which is already handled by defaulting to vault.bitwarden.com Co-authored-by: Matt Gibson --- src/background/runtime.background.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background/runtime.background.ts b/src/background/runtime.background.ts index aea6b05b1f..09b946036a 100644 --- a/src/background/runtime.background.ts +++ b/src/background/runtime.background.ts @@ -164,7 +164,7 @@ export default class RuntimeBackground { } break; case 'authResult': - let vaultUrl = this.environmentService.webVaultUrl; + let vaultUrl = this.environmentService.getWebVaultUrl(); if (vaultUrl == null) { vaultUrl = 'https://vault.bitwarden.com'; }