Remove extra call to toJSON() (#4101)

This commit is contained in:
Robyn MacCallum 2022-11-22 10:47:31 -05:00 committed by GitHub
parent d7d6347628
commit be56d29ba0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);