mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
move storage defaults out to app
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 35039fdae2...12533dd951
@@ -55,7 +55,11 @@ export class Main {
|
|||||||
|
|
||||||
this.logService = new ElectronLogService(null, app.getPath('userData'));
|
this.logService = new ElectronLogService(null, app.getPath('userData'));
|
||||||
this.i18nService = new I18nService('en', './locales/');
|
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.windowMain = new WindowMain(this.storageService);
|
||||||
this.messagingMain = new MessagingMain(this);
|
this.messagingMain = new MessagingMain(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user