From 0540a9a90f653ae8b77afe56aed9f633428bb739 Mon Sep 17 00:00:00 2001 From: doprz <52579214+doprz@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:12:38 -0600 Subject: [PATCH] fix: openTabFromContentScript TS issue --- src/views/lib/openNewTabFromContentScript.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/views/lib/openNewTabFromContentScript.ts b/src/views/lib/openNewTabFromContentScript.ts index 3d0f9e91f..cde2b3d80 100644 --- a/src/views/lib/openNewTabFromContentScript.ts +++ b/src/views/lib/openNewTabFromContentScript.ts @@ -1,9 +1,7 @@ import { createMessenger } from 'chrome-extension-toolkit'; type MyMessages = { - openNewTab: { - data: { url: string }; - }; + openNewTab: (data: { url: string }) => void; }; const messenger = createMessenger('background'); @@ -16,7 +14,6 @@ const messenger = createMessenger('background'); * with the background script. */ export async function openTabFromContentScript(url: string) { - // @ts-ignore messenger .openNewTab({ url }) .then(() => {