1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-24 21:41:33 +01:00

[PM-5189] Refactoring implementation

This commit is contained in:
Cesar Gonzalez 2024-06-07 10:28:58 -05:00
parent 356861a100
commit a20af5b28b
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF

View File

@ -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,
) {