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

[PM-1267] Updated cli receive command to use api.bitwarden.com as api url (#5239)

This commit is contained in:
aj-rosado 2023-04-27 16:36:54 +01:00 committed by GitHub
parent 7b7b48709b
commit def3b1436d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ export class SendReceiveCommand extends DownloadCommand {
private getApiUrl(url: URL) { private getApiUrl(url: URL) {
const urls = this.environmentService.getUrls(); const urls = this.environmentService.getUrls();
if (url.origin === "https://send.bitwarden.com") { if (url.origin === "https://send.bitwarden.com") {
return "https://vault.bitwarden.com/api"; return "https://api.bitwarden.com";
} else if (url.origin === urls.api) { } else if (url.origin === urls.api) {
return url.origin; return url.origin;
} else if (this.platformUtilsService.isDev() && url.origin === urls.webVault) { } else if (this.platformUtilsService.isDev() && url.origin === urls.webVault) {