mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Remove extra call to toJSON() (#4101)
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user