Remove extra call to toJSON() (#4101)
This commit is contained in:
parent
d7d6347628
commit
be56d29ba0
|
@ -114,7 +114,7 @@ export class NativeMessageHandlerService {
|
||||||
|
|
||||||
const secret = await this.cryptoFunctionService.randomBytes(64);
|
const secret = await this.cryptoFunctionService.randomBytes(64);
|
||||||
this.ddgSharedSecret = new SymmetricCryptoKey(secret);
|
this.ddgSharedSecret = new SymmetricCryptoKey(secret);
|
||||||
const sharedKeyB64 = new SymmetricCryptoKey(secret).toJSON().keyB64;
|
const sharedKeyB64 = new SymmetricCryptoKey(secret).keyB64;
|
||||||
|
|
||||||
await this.stateService.setDuckDuckGoSharedKey(sharedKeyB64);
|
await this.stateService.setDuckDuckGoSharedKey(sharedKeyB64);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue