From fa6bbbd2527fb0c323b32deb8456de0f1fb37ead Mon Sep 17 00:00:00 2001 From: Cesar Gonzalez Date: Tue, 11 Jun 2024 08:44:52 -0500 Subject: [PATCH] [PM-5189] Fixing a typo --- .../abstractions/autofill-inline-menu-container.ts | 6 +++--- .../pages/menu-container/autofill-inline-menu-container.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/browser/src/autofill/overlay/inline-menu/abstractions/autofill-inline-menu-container.ts b/apps/browser/src/autofill/overlay/inline-menu/abstractions/autofill-inline-menu-container.ts index 1b58d37a340..36952c7710a 100644 --- a/apps/browser/src/autofill/overlay/inline-menu/abstractions/autofill-inline-menu-container.ts +++ b/apps/browser/src/autofill/overlay/inline-menu/abstractions/autofill-inline-menu-container.ts @@ -7,7 +7,7 @@ type AutofillInlineMenuContainerMessage = { portKey: string; }; -export type InitInlineMenuElementMessage = AutofillInlineMenuContainerMessage & { +export type InitAutofillInlineMenuElementMessage = AutofillInlineMenuContainerMessage & { iframeUrl?: string; pageTitle?: string; authStatus?: AuthenticationStatus; @@ -20,6 +20,6 @@ export type InitInlineMenuElementMessage = AutofillInlineMenuContainerMessage & export type AutofillInlineMenuContainerWindowMessageHandlers = { [key: string]: CallableFunction; - initAutofillInlineMenuList: (message: InitInlineMenuElementMessage) => void; - initAutofillInlineMenuButton: (message: InitInlineMenuElementMessage) => void; + initAutofillInlineMenuList: (message: InitAutofillInlineMenuElementMessage) => void; + initAutofillInlineMenuButton: (message: InitAutofillInlineMenuElementMessage) => void; }; diff --git a/apps/browser/src/autofill/overlay/inline-menu/pages/menu-container/autofill-inline-menu-container.ts b/apps/browser/src/autofill/overlay/inline-menu/pages/menu-container/autofill-inline-menu-container.ts index f494bbdf4bf..24bb23fd549 100644 --- a/apps/browser/src/autofill/overlay/inline-menu/pages/menu-container/autofill-inline-menu-container.ts +++ b/apps/browser/src/autofill/overlay/inline-menu/pages/menu-container/autofill-inline-menu-container.ts @@ -2,7 +2,7 @@ import { EVENTS } from "@bitwarden/common/autofill/constants"; import { setElementStyles } from "../../../../utils"; import { - InitInlineMenuElementMessage, + InitAutofillInlineMenuElementMessage, AutofillInlineMenuContainerWindowMessageHandlers, } from "../../abstractions/autofill-inline-menu-container"; @@ -50,7 +50,7 @@ export class AutofillInlineMenuContainer { globalThis.addEventListener("message", this.handleWindowMessage); } - private handleInitInlineMenuIframe(message: InitInlineMenuElementMessage) { + private handleInitInlineMenuIframe(message: InitAutofillInlineMenuElementMessage) { this.defaultIframeAttributes.src = message.iframeUrl; this.defaultIframeAttributes.title = message.pageTitle; this.portName = message.portName; @@ -67,7 +67,7 @@ export class AutofillInlineMenuContainer { globalThis.document.body.appendChild(this.inlineMenuPageIframe); } - private setupPortMessageListener = (message: InitInlineMenuElementMessage) => { + private setupPortMessageListener = (message: InitAutofillInlineMenuElementMessage) => { this.port = chrome.runtime.connect({ name: this.portName }); this.postMessageToInlineMenuPage(message); };