mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-24 16:49:26 +01:00
dont need to check storage for lock options on get
This commit is contained in:
parent
6a8d2c305e
commit
2fcc3c51b8
@ -83,11 +83,6 @@ export class CryptoService implements CryptoServiceAbstraction {
|
||||
return this.key;
|
||||
}
|
||||
|
||||
const option = await this.storageService.get<number>(ConstantsService.lockOptionKey);
|
||||
if (option != null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const key = await this.secureStorageService.get<string>(Keys.key);
|
||||
if (key != null) {
|
||||
this.key = new SymmetricCryptoKey(Utils.fromB64ToArray(key).buffer);
|
||||
|
Loading…
Reference in New Issue
Block a user