diff --git a/apps/browser/src/background/main.background.ts b/apps/browser/src/background/main.background.ts index 7251dea0580..8716b5ebf99 100644 --- a/apps/browser/src/background/main.background.ts +++ b/apps/browser/src/background/main.background.ts @@ -1330,6 +1330,8 @@ export default class MainBackground { this.syncServiceListener?.listener$().subscribe(); await this.autoSubmitLoginBackground.init(); + this.configService.broadcastConfigChangesTo(this.encryptService, this.bulkEncryptService); + if ( BrowserApi.isManifestVersion(2) && (await this.configService.getFeatureFlag(FeatureFlag.PM4154_BulkEncryptionService)) diff --git a/apps/browser/src/popup/services/init.service.ts b/apps/browser/src/popup/services/init.service.ts index fe6fba85a4b..f0c382431b4 100644 --- a/apps/browser/src/popup/services/init.service.ts +++ b/apps/browser/src/popup/services/init.service.ts @@ -3,6 +3,8 @@ import { inject, Inject, Injectable } from "@angular/core"; import { AbstractThemingService } from "@bitwarden/angular/platform/services/theming/theming.service.abstraction"; import { TwoFactorService } from "@bitwarden/common/auth/abstractions/two-factor.service"; +import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service"; +import { ConfigService } from "@bitwarden/common/platform/abstractions/config/config.service"; import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service"; import { LogService as LogServiceAbstraction } from "@bitwarden/common/platform/abstractions/log.service"; import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service"; @@ -27,6 +29,8 @@ export class InitService { private themingService: AbstractThemingService, private sdkLoadService: SdkLoadService, private viewCacheService: PopupViewCacheService, + private encryptService: EncryptService, + private configService: ConfigService, @Inject(DOCUMENT) private document: Document, ) {} @@ -58,6 +62,8 @@ export class InitService { this.logService.info("Force redraw is on"); } + this.configService.broadcastConfigChangesTo(this.encryptService); + this.setupVaultPopupHeartbeat(); }; }