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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user