1
0
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:
Vincent Salucci 2020-05-28 13:30:11 -05:00 committed by GitHub
parent 4aa092a18d
commit e6856a52b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
} }
} }
} }