mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
Initial commit: made lock state default (#1261)
This commit is contained in:
@@ -43,10 +43,10 @@ export default class IdleBackground {
|
||||
const timeout = await this.storageService.get<number>(ConstantsService.vaultTimeoutKey);
|
||||
if (timeout === -2) { // On System Lock vault timeout option
|
||||
const action = await this.storageService.get<string>(ConstantsService.vaultTimeoutActionKey);
|
||||
if (action === 'lock') {
|
||||
await this.vaultTimeoutService.lock(true);
|
||||
} else {
|
||||
if (action === 'logOut') {
|
||||
await this.vaultTimeoutService.logOut();
|
||||
} else {
|
||||
await this.vaultTimeoutService.lock(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user