1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-24 11:55:50 +01:00

move storage defaults out to app

This commit is contained in:
Kyle Spearrin 2018-04-26 16:17:14 -04:00
parent 1f706802f6
commit 0c0b551f1c
2 changed files with 6 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 35039fdae2038f6bdfbdef6616b2bfae0053d47b
Subproject commit 12533dd951e5f248ee82ca0100fb9fd215fc6bd3

View File

@ -55,7 +55,11 @@ export class Main {
this.logService = new ElectronLogService(null, app.getPath('userData'));
this.i18nService = new I18nService('en', './locales/');
this.storageService = new ElectronStorageService();
const storageDefaults: any = {};
// Default lock options to "on restart".
storageDefaults[ConstantsService.lockOptionKey] = -1;
this.storageService = new ElectronStorageService(storageDefaults);
this.windowMain = new WindowMain(this.storageService);
this.messagingMain = new MessagingMain(this);