mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-25 21:51:30 +01:00
[PM-5189] Refactoring implementation
This commit is contained in:
parent
a599679563
commit
4ea14070d1
@ -160,14 +160,14 @@ export default class AutofillService implements AutofillServiceInterface {
|
|||||||
const activeAccount = await firstValueFrom(this.accountService.activeAccount$);
|
const activeAccount = await firstValueFrom(this.accountService.activeAccount$);
|
||||||
const authStatus = await firstValueFrom(this.authService.activeAccountStatus$);
|
const authStatus = await firstValueFrom(this.authService.activeAccountStatus$);
|
||||||
const accountIsUnlocked = authStatus === AuthenticationStatus.Unlocked;
|
const accountIsUnlocked = authStatus === AuthenticationStatus.Unlocked;
|
||||||
let overlayVisibility: InlineMenuVisibilitySetting = AutofillOverlayVisibility.Off;
|
let inlineMenuVisibility: InlineMenuVisibilitySetting = AutofillOverlayVisibility.Off;
|
||||||
let autoFillOnPageLoadIsEnabled = false;
|
let autoFillOnPageLoadIsEnabled = false;
|
||||||
|
|
||||||
if (activeAccount) {
|
if (activeAccount) {
|
||||||
overlayVisibility = await this.getInlineMenuVisibility();
|
inlineMenuVisibility = await this.getInlineMenuVisibility();
|
||||||
}
|
}
|
||||||
|
|
||||||
const mainAutofillScript = overlayVisibility
|
const mainAutofillScript = inlineMenuVisibility
|
||||||
? "bootstrap-autofill-overlay.js"
|
? "bootstrap-autofill-overlay.js"
|
||||||
: "bootstrap-autofill.js";
|
: "bootstrap-autofill.js";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user