From be56d29ba0831f935f05f630397c94b27694c7fe Mon Sep 17 00:00:00 2001 From: Robyn MacCallum Date: Tue, 22 Nov 2022 10:47:31 -0500 Subject: [PATCH] Remove extra call to toJSON() (#4101) --- apps/desktop/src/services/nativeMessageHandler.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/desktop/src/services/nativeMessageHandler.service.ts b/apps/desktop/src/services/nativeMessageHandler.service.ts index 8a578957bf..e7c9208207 100644 --- a/apps/desktop/src/services/nativeMessageHandler.service.ts +++ b/apps/desktop/src/services/nativeMessageHandler.service.ts @@ -114,7 +114,7 @@ export class NativeMessageHandlerService { const secret = await this.cryptoFunctionService.randomBytes(64); this.ddgSharedSecret = new SymmetricCryptoKey(secret); - const sharedKeyB64 = new SymmetricCryptoKey(secret).toJSON().keyB64; + const sharedKeyB64 = new SymmetricCryptoKey(secret).keyB64; await this.stateService.setDuckDuckGoSharedKey(sharedKeyB64);