1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 03:03:43 +00:00

fixes during crypto service testing

This commit is contained in:
Kyle Spearrin
2017-11-02 09:17:53 -04:00
parent c3704c3dfd
commit fbba9b673d
6 changed files with 13 additions and 8 deletions

View File

@@ -76,7 +76,7 @@ export default class CryptoService {
async getKey(): Promise<SymmetricCryptoKey> {
if (this.key != null) {
return;
return this.key;
}
const option = await this.utilsService.getObjFromStorage<number>(ConstantsService.lockOptionKey);
@@ -126,7 +126,7 @@ export default class CryptoService {
async getPrivateKey(): Promise<ArrayBuffer> {
if (this.privateKey != null) {
return Promise.resolve(this.privateKey);
return this.privateKey;
}
const encPrivateKey = await this.utilsService.getObjFromStorage<string>(Keys.encPrivateKey);