From f7e2d7cd02e9b483e3b6a659b4fb37588abd1425 Mon Sep 17 00:00:00 2001 From: Cesar Gonzalez Date: Tue, 11 Jun 2024 08:42:04 -0500 Subject: [PATCH] [PM-5189] Fixing a typo --- .../abstractions/autofill-inline-menu-container.ts | 6 +++--- .../pages/menu-container/autofill-inline-menu-container.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 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 a9ff2ce4c45..1b58d37a340 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 @@ -2,12 +2,12 @@ import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authenticatio import { InlineMenuCipherData } from "../../../background/abstractions/overlay.background"; -type AutofillInlineMenuMenuContainerMessage = { +type AutofillInlineMenuContainerMessage = { command: string; portKey: string; }; -export type InitInlineMenuElementMessage = AutofillInlineMenuMenuContainerMessage & { +export type InitInlineMenuElementMessage = AutofillInlineMenuContainerMessage & { iframeUrl?: string; pageTitle?: string; authStatus?: AuthenticationStatus; @@ -18,7 +18,7 @@ export type InitInlineMenuElementMessage = AutofillInlineMenuMenuContainerMessag portName?: string; }; -export type AutofillInlineMenuMenuContainerWindowMessageHandlers = { +export type AutofillInlineMenuContainerWindowMessageHandlers = { [key: string]: CallableFunction; initAutofillInlineMenuList: (message: InitInlineMenuElementMessage) => void; initAutofillInlineMenuButton: (message: InitInlineMenuElementMessage) => 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 7e5a7ba35cd..f494bbdf4bf 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 @@ -3,7 +3,7 @@ import { EVENTS } from "@bitwarden/common/autofill/constants"; import { setElementStyles } from "../../../../utils"; import { InitInlineMenuElementMessage, - AutofillInlineMenuMenuContainerWindowMessageHandlers, + AutofillInlineMenuContainerWindowMessageHandlers, } from "../../abstractions/autofill-inline-menu-container"; export class AutofillInlineMenuContainer { @@ -36,7 +36,7 @@ export class AutofillInlineMenuContainer { allowtransparency: "true", tabIndex: "-1", }; - private windowMessageHandlers: AutofillInlineMenuMenuContainerWindowMessageHandlers = { + private windowMessageHandlers: AutofillInlineMenuContainerWindowMessageHandlers = { initAutofillInlineMenuList: (message) => this.handleInitInlineMenuIframe(message), initAutofillInlineMenuButton: (message) => this.handleInitInlineMenuIframe(message), };