1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 17:23:37 +00:00

setLockOption

This commit is contained in:
Kyle Spearrin
2018-02-11 00:38:17 -05:00
parent 6c3f0a538f
commit 4960fa18c0
2 changed files with 6 additions and 0 deletions

View File

@@ -61,4 +61,9 @@ export class LockService implements LockServiceAbstraction {
this.collectionService.clearCache();
this.messagingService.send('locked');
}
async setLockOption(lockOption: number): Promise<void> {
await this.storageService.save(ConstantsService.lockOptionKey, lockOption);
await this.cryptoService.toggleKey();
}
}