File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,10 @@ export class AutofillInlineMenuContentService implements AutofillInlineMenuConte
166166 * Updates the position of both the inline menu button and inline menu list.
167167 */
168168 private async appendInlineMenuElements ( { overlayElement } : AutofillExtensionMessage ) {
169+ if ( ! this . inlineMenuEnabled ) {
170+ return ;
171+ }
172+
169173 if ( overlayElement === AutofillOverlayElement . Button ) {
170174 return this . appendButtonElement ( ) ;
171175 }
@@ -177,6 +181,10 @@ export class AutofillInlineMenuContentService implements AutofillInlineMenuConte
177181 * Updates the position of the inline menu button.
178182 */
179183 private async appendButtonElement ( ) : Promise < void > {
184+ if ( ! this . inlineMenuEnabled ) {
185+ return ;
186+ }
187+
180188 if ( ! this . buttonElement ) {
181189 this . createButtonElement ( ) ;
182190 this . updateCustomElementDefaultStyles ( this . buttonElement ) ;
@@ -193,6 +201,10 @@ export class AutofillInlineMenuContentService implements AutofillInlineMenuConte
193201 * Updates the position of the inline menu list.
194202 */
195203 private async appendListElement ( ) : Promise < void > {
204+ if ( ! this . inlineMenuEnabled ) {
205+ return ;
206+ }
207+
196208 if ( ! this . listElement ) {
197209 this . createListElement ( ) ;
198210 this . updateCustomElementDefaultStyles ( this . listElement ) ;
You can’t perform that action at this time.
0 commit comments