mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 23:33:31 +00:00
Bug fix: made lock default conditional check (#106)
This commit is contained in:
@@ -81,7 +81,7 @@ export class VaultTimeoutService implements VaultTimeoutServiceAbstraction {
|
|||||||
if (diffSeconds >= vaultTimeoutSeconds) {
|
if (diffSeconds >= vaultTimeoutSeconds) {
|
||||||
// Pivot based on the saved vault timeout action
|
// Pivot based on the saved vault timeout action
|
||||||
const timeoutAction = await this.storageService.get<string>(ConstantsService.vaultTimeoutActionKey);
|
const timeoutAction = await this.storageService.get<string>(ConstantsService.vaultTimeoutActionKey);
|
||||||
timeoutAction === 'lock' ? await this.lock(true) : await this.logOut();
|
timeoutAction === 'logOut' ? await this.logOut() : await this.lock(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user