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

[PM-5189] Fixing a typo

This commit is contained in:
Cesar Gonzalez 2024-06-11 08:44:52 -05:00
parent f7e2d7cd02
commit fa6bbbd252
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF
2 changed files with 6 additions and 6 deletions

View File

@ -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;
};

View File

@ -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);
};