mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-25 12:15:18 +01:00
fix: only load vault timeout service in background (#11344)
This commit is contained in:
parent
d3d1a55972
commit
29db451808
@ -283,7 +283,7 @@ export default class MainBackground {
|
|||||||
folderService: InternalFolderServiceAbstraction;
|
folderService: InternalFolderServiceAbstraction;
|
||||||
userDecryptionOptionsService: InternalUserDecryptionOptionsServiceAbstraction;
|
userDecryptionOptionsService: InternalUserDecryptionOptionsServiceAbstraction;
|
||||||
collectionService: CollectionServiceAbstraction;
|
collectionService: CollectionServiceAbstraction;
|
||||||
vaultTimeoutService: VaultTimeoutService;
|
vaultTimeoutService?: VaultTimeoutService;
|
||||||
vaultTimeoutSettingsService: VaultTimeoutSettingsServiceAbstraction;
|
vaultTimeoutSettingsService: VaultTimeoutSettingsServiceAbstraction;
|
||||||
passwordGenerationService: PasswordGenerationServiceAbstraction;
|
passwordGenerationService: PasswordGenerationServiceAbstraction;
|
||||||
syncService: SyncService;
|
syncService: SyncService;
|
||||||
@ -842,24 +842,26 @@ export default class MainBackground {
|
|||||||
|
|
||||||
this.vaultSettingsService = new VaultSettingsService(this.stateProvider);
|
this.vaultSettingsService = new VaultSettingsService(this.stateProvider);
|
||||||
|
|
||||||
this.vaultTimeoutService = new VaultTimeoutService(
|
if (!this.popupOnlyContext) {
|
||||||
this.accountService,
|
this.vaultTimeoutService = new VaultTimeoutService(
|
||||||
this.masterPasswordService,
|
this.accountService,
|
||||||
this.cipherService,
|
this.masterPasswordService,
|
||||||
this.folderService,
|
this.cipherService,
|
||||||
this.collectionService,
|
this.folderService,
|
||||||
this.platformUtilsService,
|
this.collectionService,
|
||||||
this.messagingService,
|
this.platformUtilsService,
|
||||||
this.searchService,
|
this.messagingService,
|
||||||
this.stateService,
|
this.searchService,
|
||||||
this.authService,
|
this.stateService,
|
||||||
this.vaultTimeoutSettingsService,
|
this.authService,
|
||||||
this.stateEventRunnerService,
|
this.vaultTimeoutSettingsService,
|
||||||
this.taskSchedulerService,
|
this.stateEventRunnerService,
|
||||||
this.logService,
|
this.taskSchedulerService,
|
||||||
lockedCallback,
|
this.logService,
|
||||||
logoutCallback,
|
lockedCallback,
|
||||||
);
|
logoutCallback,
|
||||||
|
);
|
||||||
|
}
|
||||||
this.containerService = new ContainerService(this.cryptoService, this.encryptService);
|
this.containerService = new ContainerService(this.cryptoService, this.encryptService);
|
||||||
|
|
||||||
this.sendStateProvider = new SendStateProvider(this.stateProvider);
|
this.sendStateProvider = new SendStateProvider(this.stateProvider);
|
||||||
|
Loading…
Reference in New Issue
Block a user