mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-09 19:28:06 +01:00
[PM-5189] Fixing some typos
This commit is contained in:
parent
8bfa02eeea
commit
87cccdb52a
@ -1188,7 +1188,7 @@ describe("OverlayBackground", () => {
|
||||
|
||||
expect(tabsSendMessageSpy).toHaveBeenCalledWith(
|
||||
sender.tab,
|
||||
{ command: "checkIsAutofillInlineMenuButtonVisible" },
|
||||
{ command: "checkIsInlineMenuButtonVisible" },
|
||||
{ frameId: 0 },
|
||||
);
|
||||
});
|
||||
@ -1202,7 +1202,7 @@ describe("OverlayBackground", () => {
|
||||
|
||||
expect(tabsSendMessageSpy).toHaveBeenCalledWith(
|
||||
sender.tab,
|
||||
{ command: "checkIsAutofillInlineMenuListVisible" },
|
||||
{ command: "checkIsInlineMenuListVisible" },
|
||||
{ frameId: 0 },
|
||||
);
|
||||
});
|
||||
|
@ -85,9 +85,8 @@ export class OverlayBackground implements OverlayBackgroundInterface {
|
||||
updateAutofillInlineMenuHidden: ({ message, sender }) =>
|
||||
this.updateInlineMenuHidden(message, sender),
|
||||
checkIsAutofillInlineMenuButtonVisible: ({ sender }) =>
|
||||
this.checkIsAutofillInlineMenuButtonVisible(sender),
|
||||
checkIsAutofillInlineMenuListVisible: ({ sender }) =>
|
||||
this.checkIsAutofillInlineMenuListVisible(sender),
|
||||
this.checkIsInlineMenuButtonVisible(sender),
|
||||
checkIsAutofillInlineMenuListVisible: ({ sender }) => this.checkIsInlineMenuListVisible(sender),
|
||||
checkShouldRepositionInlineMenu: ({ sender }) => this.checkShouldRepositionInlineMenu(sender),
|
||||
getCurrentTabFrameId: ({ sender }) => this.getSenderFrameId(sender),
|
||||
updateSubFrameData: ({ message, sender }) => this.updateSubFrameData(message, sender),
|
||||
@ -984,12 +983,12 @@ export class OverlayBackground implements OverlayBackgroundInterface {
|
||||
*
|
||||
* @param sender - The sender of the message
|
||||
*/
|
||||
private async checkIsAutofillInlineMenuButtonVisible(
|
||||
private async checkIsInlineMenuButtonVisible(
|
||||
sender: chrome.runtime.MessageSender,
|
||||
): Promise<boolean> {
|
||||
return await BrowserApi.tabSendMessage(
|
||||
sender.tab,
|
||||
{ command: "checkIsAutofillInlineMenuButtonVisible" },
|
||||
{ command: "checkIsInlineMenuButtonVisible" },
|
||||
{ frameId: 0 },
|
||||
);
|
||||
}
|
||||
@ -999,12 +998,12 @@ export class OverlayBackground implements OverlayBackgroundInterface {
|
||||
*
|
||||
* @param sender - The sender of the message
|
||||
*/
|
||||
private async checkIsAutofillInlineMenuListVisible(
|
||||
private async checkIsInlineMenuListVisible(
|
||||
sender: chrome.runtime.MessageSender,
|
||||
): Promise<boolean> {
|
||||
return await BrowserApi.tabSendMessage(
|
||||
sender.tab,
|
||||
{ command: "checkIsAutofillInlineMenuListVisible" },
|
||||
{ command: "checkIsInlineMenuListVisible" },
|
||||
{ frameId: 0 },
|
||||
);
|
||||
}
|
||||
|
@ -5,8 +5,8 @@ export type InlineMenuExtensionMessageHandlers = {
|
||||
closeInlineMenu: ({ message }: AutofillExtensionMessageParam) => void;
|
||||
appendInlineMenuElementsToDom: ({ message }: AutofillExtensionMessageParam) => Promise<void>;
|
||||
toggleInlineMenuHidden: ({ message }: AutofillExtensionMessageParam) => void;
|
||||
checkIsAutofillInlineMenuButtonVisible: () => boolean;
|
||||
checkIsAutofillInlineMenuListVisible: () => boolean;
|
||||
checkIsInlineMenuButtonVisible: () => boolean;
|
||||
checkIsInlineMenuListVisible: () => boolean;
|
||||
};
|
||||
|
||||
export interface AutofillInlineMenuContentService {
|
||||
|
@ -39,8 +39,8 @@ export class AutofillInlineMenuContentService implements AutofillInlineMenuConte
|
||||
appendInlineMenuElementsToDom: ({ message }) => this.appendInlineMenuElements(message),
|
||||
toggleInlineMenuHidden: ({ message }) =>
|
||||
this.toggleInlineMenuHidden(message.isInlineMenuHidden),
|
||||
checkIsAutofillInlineMenuButtonVisible: () => this.isInlineMenuButtonVisible(),
|
||||
checkIsAutofillInlineMenuListVisible: () => this.isInlineMenuListVisible(),
|
||||
checkIsInlineMenuButtonVisible: () => this.isInlineMenuButtonVisible(),
|
||||
checkIsInlineMenuListVisible: () => this.isInlineMenuListVisible(),
|
||||
};
|
||||
|
||||
constructor() {
|
||||
|
Loading…
Reference in New Issue
Block a user