From c66ef5e170e6e41aa37aa5b68bc28c5f68fbeb82 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 12 Dec 2023 15:09:07 +0800 Subject: [PATCH] fix: requestHTML from specific tab --- src/background/index.ts | 3 ++- src/popup/index.tsx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/background/index.ts b/src/background/index.ts index c8e6189..4954d6f 100644 --- a/src/background/index.ts +++ b/src/background/index.ts @@ -33,7 +33,8 @@ export const getRSS = async (tabId, url) => { console.debug("Send to content script requestHTML") const html = await sendToContentScript({ - name: "requestHTML" + name: "requestHTML", + tabId, }) console.debug("Get html", html) diff --git a/src/popup/index.tsx b/src/popup/index.tsx index 0501ef6..8207263 100644 --- a/src/popup/index.tsx +++ b/src/popup/index.tsx @@ -22,8 +22,8 @@ function IndexPopup() { return (
- - + + {!data.pageRSS && !data.pageRSSHub && !data.websiteRSSHub && (