From a20af5b28b027374499fab02a335995e179d769d Mon Sep 17 00:00:00 2001 From: Cesar Gonzalez Date: Fri, 7 Jun 2024 10:28:58 -0500 Subject: [PATCH] [PM-5189] Refactoring implementation --- apps/browser/src/autofill/background/overlay.background.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/browser/src/autofill/background/overlay.background.ts b/apps/browser/src/autofill/background/overlay.background.ts index 6f8bb10999c..608eff6a67e 100644 --- a/apps/browser/src/autofill/background/overlay.background.ts +++ b/apps/browser/src/autofill/background/overlay.background.ts @@ -112,8 +112,7 @@ export class OverlayBackground implements OverlayBackgroundInterface { checkAutofillInlineMenuButtonFocused: () => this.checkInlineMenuButtonFocused(), autofillInlineMenuBlurred: () => this.checkInlineMenuButtonFocused(), unlockVault: ({ port }) => this.unlockVault(port), - fillAutofillInlineMenuCipher: ({ message, port }) => - this.fillSelectedInlineMenuListItem(message, port), + fillAutofillInlineMenuCipher: ({ message, port }) => this.fillInlineMenuCipher(message, port), addNewVaultItem: ({ port }) => this.getNewVaultItemDetails(port), viewSelectedCipher: ({ message, port }) => this.viewSelectedCipher(message, port), redirectAutofillInlineMenuFocusOut: ({ message, port }) => @@ -417,7 +416,7 @@ export class OverlayBackground implements OverlayBackgroundInterface { * @param inlineMenuCipherId - Cipher ID corresponding to the inlineMenuCiphers map. Does not correspond to the actual cipher's ID. * @param sender - The sender of the port message */ - private async fillSelectedInlineMenuListItem( + private async fillInlineMenuCipher( { inlineMenuCipherId }: OverlayPortMessage, { sender }: chrome.runtime.Port, ) {