1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-04-08 19:06:11 +02:00

[PM-5189] Refactoring implementation

This commit is contained in:
Cesar Gonzalez 2024-06-11 15:35:32 -05:00
parent 081d8f2af8
commit ba74a1cd36
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF

View File

@ -151,7 +151,7 @@ export class AutofillInlineMenuContentService implements AutofillInlineMenuConte
*/
private async appendButtonElement(): Promise<void> {
if (!this.buttonElement) {
this.createButton();
this.createButtonElement();
this.updateCustomElementDefaultStyles(this.buttonElement);
}
@ -166,7 +166,7 @@ export class AutofillInlineMenuContentService implements AutofillInlineMenuConte
*/
private async appendListElement(): Promise<void> {
if (!this.listElement) {
this.createList();
this.createListElement();
this.updateCustomElementDefaultStyles(this.listElement);
}
@ -192,7 +192,7 @@ export class AutofillInlineMenuContentService implements AutofillInlineMenuConte
* Creates the autofill inline menu button element. Will not attempt
* to create the element if it already exists in the DOM.
*/
private createButton() {
private createButtonElement() {
if (this.isFirefoxBrowser) {
this.buttonElement = globalThis.document.createElement("div");
new AutofillInlineMenuButtonIframe(this.buttonElement);
@ -217,7 +217,7 @@ export class AutofillInlineMenuContentService implements AutofillInlineMenuConte
* Creates the autofill inline menu list element. Will not attempt
* to create the element if it already exists in the DOM.
*/
private createList() {
private createListElement() {
if (this.isFirefoxBrowser) {
this.listElement = globalThis.document.createElement("div");
new AutofillInlineMenuListIframe(this.listElement);