1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-13 01:58:44 +02:00

dont need to check storage for lock options on get

This commit is contained in:
Kyle Spearrin 2018-07-27 21:52:09 -04:00
parent 6a8d2c305e
commit 2fcc3c51b8

View File

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