From 4345a093b75b7f51ec91528659430e1ac9a0f1a7 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Tue, 23 Nov 2021 15:13:29 -0600 Subject: [PATCH] Fix cli user agent (#415) * Fix cli user agent * update jslib --- jslib | 2 +- src/bw.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jslib b/jslib index 386903f5a9..e1c6e4973a 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 386903f5a9ef42fed709813d40e550ba91c0ee40 +Subproject commit e1c6e4973a2532b14e3187a79688e8b0a89e9d5c diff --git a/src/bw.ts b/src/bw.ts index 6567988ea9..20165c5561 100644 --- a/src/bw.ts +++ b/src/bw.ts @@ -123,7 +123,7 @@ export class Main { this.environmentService = new EnvironmentService(this.storageService); this.apiService = new NodeApiService(this.tokenService, this.platformUtilsService, this.environmentService, async (expired: boolean) => await this.logout(), - 'Bitwarden_CLI/' + this.platformUtilsService.getApplicationVersion() + + 'Bitwarden_CLI/' + this.platformUtilsService.getApplicationVersionSync() + ' (' + this.platformUtilsService.getDeviceString().toUpperCase() + ')', (clientId, clientSecret) => this.authService.logInApiKey(clientId, clientSecret)); this.userService = new UserService(this.tokenService, this.storageService);