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:
parent
f7e2d7cd02
commit
fa6bbbd252
@ -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;
|
||||
};
|
||||
|
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user