mirror of
https://github.com/bitwarden/jslib
synced 2025-12-13 23:03:33 +00:00
Add helper methods to EnvironmentService for retrieving urls (#435)
This commit is contained in:
@@ -63,12 +63,7 @@ export class AddEditComponent implements OnInit {
|
||||
{ name: i18nService.t('sendTypeFile'), value: SendType.File },
|
||||
{ name: i18nService.t('sendTypeText'), value: SendType.Text },
|
||||
];
|
||||
const webVaultUrl = this.environmentService.getWebVaultUrl();
|
||||
if (webVaultUrl == null) {
|
||||
this.sendLinkBaseUrl = 'https://send.bitwarden.com/#';
|
||||
} else {
|
||||
this.sendLinkBaseUrl = webVaultUrl + '/#/send/';
|
||||
}
|
||||
this.sendLinkBaseUrl = this.environmentService.getSendUrl();
|
||||
}
|
||||
|
||||
get link(): string {
|
||||
|
||||
Reference in New Issue
Block a user