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