1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

Add support for helpers in environment service (#353)

This commit is contained in:
Oscar Hinton
2021-07-23 22:46:32 +02:00
committed by GitHub
parent 230e00e423
commit 4ec06bbd1e
7 changed files with 13 additions and 13 deletions

View File

@@ -23,8 +23,9 @@ export class ConfigCommand {
private async getOrSetServer(url: string, options: program.OptionValues): Promise<Response> {
if ((url == null || url.trim() === '') &&
!options.webVault && !options.api && !options.identity && !options.icons && !options.notifications && !options.events) {
const baseUrl = this.environmentService.baseUrl;
const stringRes = new StringResponse(baseUrl == null ? 'https://bitwarden.com' : baseUrl);
const stringRes = new StringResponse(
this.environmentService.hasBaseUrl() ? this.environmentService.getUrls().base : 'https://bitwarden.com'
);
return Response.success(stringRes);
}