1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01: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

@ -1 +1 @@
Subproject commit 83d6b2449cba8390912b692d882f400723c01dc1 Subproject commit e16cb9b801bec1cf1744d8b48f39421ad37e1644

View File

@ -95,7 +95,9 @@ export class Main {
this.tokenService = new TokenService(this.storageService); this.tokenService = new TokenService(this.storageService);
this.messagingService = new NoopMessagingService(); this.messagingService = new NoopMessagingService();
this.apiService = new NodeApiService(this.tokenService, this.platformUtilsService, 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.environmentService = new EnvironmentService(this.apiService, this.storageService, null);
this.userService = new UserService(this.tokenService, this.storageService); this.userService = new UserService(this.tokenService, this.storageService);
this.containerService = new ContainerService(this.cryptoService); this.containerService = new ContainerService(this.cryptoService);