mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
[PM-5189] Refactoring implementation
This commit is contained in:
@@ -151,7 +151,7 @@ export class AutofillInlineMenuContentService implements AutofillInlineMenuConte
|
|||||||
*/
|
*/
|
||||||
private async appendButtonElement(): Promise<void> {
|
private async appendButtonElement(): Promise<void> {
|
||||||
if (!this.buttonElement) {
|
if (!this.buttonElement) {
|
||||||
this.createButton();
|
this.createButtonElement();
|
||||||
this.updateCustomElementDefaultStyles(this.buttonElement);
|
this.updateCustomElementDefaultStyles(this.buttonElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -166,7 +166,7 @@ export class AutofillInlineMenuContentService implements AutofillInlineMenuConte
|
|||||||
*/
|
*/
|
||||||
private async appendListElement(): Promise<void> {
|
private async appendListElement(): Promise<void> {
|
||||||
if (!this.listElement) {
|
if (!this.listElement) {
|
||||||
this.createList();
|
this.createListElement();
|
||||||
this.updateCustomElementDefaultStyles(this.listElement);
|
this.updateCustomElementDefaultStyles(this.listElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -192,7 +192,7 @@ export class AutofillInlineMenuContentService implements AutofillInlineMenuConte
|
|||||||
* Creates the autofill inline menu button element. Will not attempt
|
* Creates the autofill inline menu button element. Will not attempt
|
||||||
* to create the element if it already exists in the DOM.
|
* to create the element if it already exists in the DOM.
|
||||||
*/
|
*/
|
||||||
private createButton() {
|
private createButtonElement() {
|
||||||
if (this.isFirefoxBrowser) {
|
if (this.isFirefoxBrowser) {
|
||||||
this.buttonElement = globalThis.document.createElement("div");
|
this.buttonElement = globalThis.document.createElement("div");
|
||||||
new AutofillInlineMenuButtonIframe(this.buttonElement);
|
new AutofillInlineMenuButtonIframe(this.buttonElement);
|
||||||
@@ -217,7 +217,7 @@ export class AutofillInlineMenuContentService implements AutofillInlineMenuConte
|
|||||||
* Creates the autofill inline menu list element. Will not attempt
|
* Creates the autofill inline menu list element. Will not attempt
|
||||||
* to create the element if it already exists in the DOM.
|
* to create the element if it already exists in the DOM.
|
||||||
*/
|
*/
|
||||||
private createList() {
|
private createListElement() {
|
||||||
if (this.isFirefoxBrowser) {
|
if (this.isFirefoxBrowser) {
|
||||||
this.listElement = globalThis.document.createElement("div");
|
this.listElement = globalThis.document.createElement("div");
|
||||||
new AutofillInlineMenuListIframe(this.listElement);
|
new AutofillInlineMenuListIframe(this.listElement);
|
||||||
|
|||||||
Reference in New Issue
Block a user