mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
[Auto-Logout] Implement Vault Timeout Options (#424)
* Update jslib (31a2574->28e3fff) * Initial commit of vault timeout implentation Co-authored-by: Vincent Salucci <vsalucci@bitwarden.com>
This commit is contained in:
@@ -82,8 +82,9 @@ export class Main {
|
||||
this.i18nService = new I18nService('en', './locales/');
|
||||
|
||||
const storageDefaults: any = {};
|
||||
// Default lock options to "on restart".
|
||||
storageDefaults[ConstantsService.lockOptionKey] = -1;
|
||||
// Default vault timeout to "on restart", and action to "lock"
|
||||
storageDefaults[ConstantsService.vaultTimeoutKey] = -1;
|
||||
storageDefaults[ConstantsService.vaultTimeoutActionKey] = 'lock';
|
||||
this.storageService = new ElectronStorageService(app.getPath('userData'), storageDefaults);
|
||||
|
||||
this.windowMain = new WindowMain(this.storageService, true);
|
||||
|
||||
Reference in New Issue
Block a user