mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
[PM-2347] Refresh configs when environment urls change (#5507)
* [PM-2347] Re fetch feature flags when environment urls change and update UI.
This commit is contained in:
@@ -501,7 +501,8 @@ export default class MainBackground {
|
||||
this.configService = new ConfigService(
|
||||
this.stateService,
|
||||
this.configApiService,
|
||||
this.authService
|
||||
this.authService,
|
||||
this.environmentService
|
||||
);
|
||||
|
||||
const systemUtilsServiceReloadCallback = () => {
|
||||
|
||||
@@ -489,7 +489,12 @@ function getBgService<T>(service: keyof MainBackground) {
|
||||
{
|
||||
provide: ConfigServiceAbstraction,
|
||||
useClass: BrowserConfigService,
|
||||
deps: [StateServiceAbstraction, ConfigApiServiceAbstraction],
|
||||
deps: [
|
||||
StateServiceAbstraction,
|
||||
ConfigApiServiceAbstraction,
|
||||
AuthServiceAbstraction,
|
||||
EnvironmentService,
|
||||
],
|
||||
},
|
||||
{
|
||||
provide: DialogServiceAbstraction,
|
||||
|
||||
Reference in New Issue
Block a user