1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 23:33:31 +00:00

CLI user agent

This commit is contained in:
Kyle Spearrin
2019-10-07 10:12:39 -04:00
parent e781de9f34
commit 341421380f
2 changed files with 4 additions and 2 deletions

2
jslib

Submodule jslib updated: 83d6b2449c...e16cb9b801

View File

@@ -95,7 +95,9 @@ export class Main {
this.tokenService = new TokenService(this.storageService);
this.messagingService = new NoopMessagingService();
this.apiService = new NodeApiService(this.tokenService, this.platformUtilsService,
async (expired: boolean) => await this.logout());
async (expired: boolean) => await this.logout(),
'Bitwarden_CLI/' + this.platformUtilsService.getApplicationVersion() +
' (' + this.platformUtilsService.getDeviceString().toUpperCase() + ')');
this.environmentService = new EnvironmentService(this.apiService, this.storageService, null);
this.userService = new UserService(this.tokenService, this.storageService);
this.containerService = new ContainerService(this.cryptoService);