1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-30 07:03:26 +00:00

allow static lock timeout definition

This commit is contained in:
Kyle Spearrin
2018-06-09 14:50:18 -04:00
parent 7b05416d55
commit cd3c2ddff1
3 changed files with 9 additions and 1 deletions

View File

@@ -42,7 +42,10 @@ export class LockService implements LockServiceAbstraction {
return;
}
const lockOption = await this.storageService.get<number>(ConstantsService.lockOptionKey);
let lockOption = this.platformUtilsService.lockTimeout();
if (lockOption == null) {
lockOption = await this.storageService.get<number>(ConstantsService.lockOptionKey);
}
if (lockOption == null || lockOption < 0) {
return;
}