1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-25 00:53:22 +00:00

Fix NG0204: remove debugService from constructor, use setter instead

This commit is contained in:
Miles Blackwood
2026-02-19 16:59:06 -05:00
parent e92c9ba300
commit 1f9758715d
2 changed files with 2 additions and 5 deletions

View File

@@ -24,9 +24,7 @@ import AutofillInit from "./autofill-init";
const domElementVisibilityService = new DomElementVisibilityService(inlineMenuContentService);
const debugService = new AutofillDebugService();
const inlineMenuFieldQualificationService = new InlineMenuFieldQualificationService(
debugService.isDebugEnabled() ? debugService : undefined,
);
const inlineMenuFieldQualificationService = new InlineMenuFieldQualificationService();
if (debugService.isDebugEnabled()) {
inlineMenuFieldQualificationService.setDebugService(debugService);
}

View File

@@ -383,8 +383,7 @@ export class InlineMenuFieldQualificationService implements InlineMenuFieldQuali
return false;
}
constructor(debugService?: AutofillDebugService) {
this.debugService = debugService;
constructor() {
void sendExtensionMessage("getUserPremiumStatus").then((premiumStatus) => {
this.premiumEnabled = !!premiumStatus?.result;
});