1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-24 21:41:33 +01:00

[PM-5189] Refactoring implementation

This commit is contained in:
Cesar Gonzalez 2024-06-11 16:10:50 -05:00
parent a599679563
commit 4ea14070d1
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF

View File

@ -160,14 +160,14 @@ export default class AutofillService implements AutofillServiceInterface {
const activeAccount = await firstValueFrom(this.accountService.activeAccount$);
const authStatus = await firstValueFrom(this.authService.activeAccountStatus$);
const accountIsUnlocked = authStatus === AuthenticationStatus.Unlocked;
let overlayVisibility: InlineMenuVisibilitySetting = AutofillOverlayVisibility.Off;
let inlineMenuVisibility: InlineMenuVisibilitySetting = AutofillOverlayVisibility.Off;
let autoFillOnPageLoadIsEnabled = false;
if (activeAccount) {
overlayVisibility = await this.getInlineMenuVisibility();
inlineMenuVisibility = await this.getInlineMenuVisibility();
}
const mainAutofillScript = overlayVisibility
const mainAutofillScript = inlineMenuVisibility
? "bootstrap-autofill-overlay.js"
: "bootstrap-autofill.js";