mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
Add api parsing special case for send.bitwarden.com (#258)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user