diff --git a/apps/browser/src/background/nativeMessaging.background.ts b/apps/browser/src/background/nativeMessaging.background.ts index d393022b7b9..88fd81a3a70 100644 --- a/apps/browser/src/background/nativeMessaging.background.ts +++ b/apps/browser/src/background/nativeMessaging.background.ts @@ -422,9 +422,10 @@ export class NativeMessagingBackground { } private async showFingerprintDialog() { - const fingerprint = ( - await this.cryptoService.getFingerprint(await this.stateService.getUserId(), this.publicKey) - ).join(" "); + const fingerprint = await this.cryptoService.getFingerprint( + await this.stateService.getUserId(), + this.publicKey + ); this.messagingService.send("showNativeMessagingFinterprintDialog", { fingerprint: fingerprint, diff --git a/apps/browser/src/popup/components/desktop-sync-verification-dialog.component.html b/apps/browser/src/popup/components/desktop-sync-verification-dialog.component.html index d9bb0e33b2a..20cbd2890f0 100644 --- a/apps/browser/src/popup/components/desktop-sync-verification-dialog.component.html +++ b/apps/browser/src/popup/components/desktop-sync-verification-dialog.component.html @@ -5,7 +5,7 @@ {{ "desktopIntegrationVerificationText" | i18n }} - {{ params.fingerprint }} + {{ params.fingerprint.join("-") }} diff --git a/apps/browser/src/popup/components/desktop-sync-verification-dialog.component.ts b/apps/browser/src/popup/components/desktop-sync-verification-dialog.component.ts index 78705e1ed57..c860ef1e342 100644 --- a/apps/browser/src/popup/components/desktop-sync-verification-dialog.component.ts +++ b/apps/browser/src/popup/components/desktop-sync-verification-dialog.component.ts @@ -5,7 +5,7 @@ import { JslibModule } from "@bitwarden/angular/jslib.module"; import { ButtonModule, DialogModule, DialogService } from "@bitwarden/components"; export type DesktopSyncVerificationDialogParams = { - fingerprint: string; + fingerprint: string[]; }; @Component({ diff --git a/apps/desktop/src/app/components/browser-sync-verification-dialog.component.html b/apps/desktop/src/app/components/browser-sync-verification-dialog.component.html index caf2d47698b..1efcccf3f84 100644 --- a/apps/desktop/src/app/components/browser-sync-verification-dialog.component.html +++ b/apps/desktop/src/app/components/browser-sync-verification-dialog.component.html @@ -5,7 +5,7 @@ {{ "verifyBrowserDesc" | i18n }} - {{ params.fingerprint }} + {{ params.fingerprint.join("-") }} diff --git a/apps/desktop/src/app/components/browser-sync-verification-dialog.component.ts b/apps/desktop/src/app/components/browser-sync-verification-dialog.component.ts index f627380860d..aefa5672a94 100644 --- a/apps/desktop/src/app/components/browser-sync-verification-dialog.component.ts +++ b/apps/desktop/src/app/components/browser-sync-verification-dialog.component.ts @@ -5,7 +5,7 @@ import { JslibModule } from "@bitwarden/angular/jslib.module"; import { ButtonModule, DialogModule, DialogService } from "@bitwarden/components"; export type BrowserSyncVerificationDialogParams = { - fingerprint: string; + fingerprint: string[]; }; @Component({ diff --git a/apps/desktop/src/services/native-messaging.service.ts b/apps/desktop/src/services/native-messaging.service.ts index 646e7bcc508..7948daf502d 100644 --- a/apps/desktop/src/services/native-messaging.service.ts +++ b/apps/desktop/src/services/native-messaging.service.ts @@ -71,12 +71,10 @@ export class NativeMessagingService { if (await this.stateService.getEnableBrowserIntegrationFingerprint()) { ipcRenderer.send("nativeMessagingReply", { command: "verifyFingerprint", appId: appId }); - const fingerprint = ( - await this.cryptoService.getFingerprint( - await this.stateService.getUserId(), - remotePublicKey - ) - ).join("-"); + const fingerprint = await this.cryptoService.getFingerprint( + await this.stateService.getUserId(), + remotePublicKey + ); this.messagingService.send("setFocus");
{{ "verifyBrowserDesc" | i18n }}
- {{ params.fingerprint }} + {{ params.fingerprint.join("-") }}