1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00: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
2 changed files with 6 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ type AutofillInlineMenuContainerMessage = {
portKey: string; portKey: string;
}; };
export type InitInlineMenuElementMessage = AutofillInlineMenuContainerMessage & { export type InitAutofillInlineMenuElementMessage = AutofillInlineMenuContainerMessage & {
iframeUrl?: string; iframeUrl?: string;
pageTitle?: string; pageTitle?: string;
authStatus?: AuthenticationStatus; authStatus?: AuthenticationStatus;
@@ -20,6 +20,6 @@ export type InitInlineMenuElementMessage = AutofillInlineMenuContainerMessage &
export type AutofillInlineMenuContainerWindowMessageHandlers = { export type AutofillInlineMenuContainerWindowMessageHandlers = {
[key: string]: CallableFunction; [key: string]: CallableFunction;
initAutofillInlineMenuList: (message: InitInlineMenuElementMessage) => void; initAutofillInlineMenuList: (message: InitAutofillInlineMenuElementMessage) => void;
initAutofillInlineMenuButton: (message: InitInlineMenuElementMessage) => void; initAutofillInlineMenuButton: (message: InitAutofillInlineMenuElementMessage) => void;
}; };

View File

@@ -2,7 +2,7 @@ import { EVENTS } from "@bitwarden/common/autofill/constants";
import { setElementStyles } from "../../../../utils"; import { setElementStyles } from "../../../../utils";
import { import {
InitInlineMenuElementMessage, InitAutofillInlineMenuElementMessage,
AutofillInlineMenuContainerWindowMessageHandlers, AutofillInlineMenuContainerWindowMessageHandlers,
} from "../../abstractions/autofill-inline-menu-container"; } from "../../abstractions/autofill-inline-menu-container";
@@ -50,7 +50,7 @@ export class AutofillInlineMenuContainer {
globalThis.addEventListener("message", this.handleWindowMessage); globalThis.addEventListener("message", this.handleWindowMessage);
} }
private handleInitInlineMenuIframe(message: InitInlineMenuElementMessage) { private handleInitInlineMenuIframe(message: InitAutofillInlineMenuElementMessage) {
this.defaultIframeAttributes.src = message.iframeUrl; this.defaultIframeAttributes.src = message.iframeUrl;
this.defaultIframeAttributes.title = message.pageTitle; this.defaultIframeAttributes.title = message.pageTitle;
this.portName = message.portName; this.portName = message.portName;
@@ -67,7 +67,7 @@ export class AutofillInlineMenuContainer {
globalThis.document.body.appendChild(this.inlineMenuPageIframe); globalThis.document.body.appendChild(this.inlineMenuPageIframe);
} }
private setupPortMessageListener = (message: InitInlineMenuElementMessage) => { private setupPortMessageListener = (message: InitAutofillInlineMenuElementMessage) => {
this.port = chrome.runtime.connect({ name: this.portName }); this.port = chrome.runtime.connect({ name: this.portName });
this.postMessageToInlineMenuPage(message); this.postMessageToInlineMenuPage(message);
}; };