From 8e33e0baf78d6ff69d0c08f9e842b8bcf1379b1c Mon Sep 17 00:00:00 2001 From: William Martin Date: Fri, 1 Sep 2023 12:30:30 -0400 Subject: [PATCH] format fingerprint in template --- .../src/background/nativeMessaging.background.ts | 7 ++++--- .../desktop-sync-verification-dialog.component.html | 2 +- .../desktop-sync-verification-dialog.component.ts | 2 +- .../browser-sync-verification-dialog.component.html | 2 +- .../browser-sync-verification-dialog.component.ts | 2 +- apps/desktop/src/services/native-messaging.service.ts | 10 ++++------ 6 files changed, 12 insertions(+), 13 deletions(-) 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("-") }}