mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
[AC-1479][BEEEP] Refactor ConfigService to improve observable usage (#5602)
* refactor ConfigService to use observables * make environmentService.urls a ReplaySubject --------- Co-authored-by: Hinton <hinton@users.noreply.github.com>
This commit is contained in:
@@ -103,7 +103,7 @@ export default class RuntimeBackground {
|
||||
await this.main.refreshMenu();
|
||||
}, 2000);
|
||||
this.main.avatarUpdateService.loadColorFromState();
|
||||
this.configService.fetchServerConfig();
|
||||
this.configService.triggerServerConfigFetch();
|
||||
}
|
||||
break;
|
||||
case "openPopup":
|
||||
@@ -139,7 +139,7 @@ export default class RuntimeBackground {
|
||||
case "triggerAutofillScriptInjection":
|
||||
await this.autofillService.injectAutofillScripts(
|
||||
sender,
|
||||
await this.configService.getFeatureFlagBool(FeatureFlag.AutofillV2)
|
||||
await this.configService.getFeatureFlag<boolean>(FeatureFlag.AutofillV2)
|
||||
);
|
||||
break;
|
||||
case "bgCollectPageDetails":
|
||||
|
||||
Reference in New Issue
Block a user