From 73f358a09dadfdcae84a74422f7f532f1b05cdf1 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Tue, 16 Mar 2021 14:19:51 -0500 Subject: [PATCH] Add api parsing special case for send.bitwarden.com (#258) --- src/commands/send/receive.command.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/send/receive.command.ts b/src/commands/send/receive.command.ts index 10e0d140d0..9178dcffc8 100644 --- a/src/commands/send/receive.command.ts +++ b/src/commands/send/receive.command.ts @@ -99,7 +99,9 @@ export class SendReceiveCommand extends DownloadCommand { } private getApiUrl(url: URL) { - if (url.origin === this.apiService.apiBaseUrl) { + if (url.origin === 'https://send.bitwarden.com') { + return 'https://vault.bitwarden.com/api'; + } else if (url.origin === this.apiService.apiBaseUrl) { return url.origin; } else if (this.platformUtilsService.isDev() && url.origin === this.environmentService.getWebVaultUrl()) { return this.apiService.apiBaseUrl;