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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user