From ed98361201c5cf628964666cd57f73709f8c5fb6 Mon Sep 17 00:00:00 2001 From: kawamataryo Date: Wed, 13 Nov 2024 07:35:39 +0900 Subject: [PATCH] fix: remove invalid permission handling --- src/popup.tsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/popup.tsx b/src/popup.tsx index 49e95ed..81e2bff 100644 --- a/src/popup.tsx +++ b/src/popup.tsx @@ -104,14 +104,6 @@ function IndexPopup() { currentWindow: true, }); - if (!currentUrl) { - setErrorMessage( - "Error: The current URL could not be retrieved. Please check the extension permissions.", - DOCUMENT_LINK.OTHER_ERROR, - ); - return; - } - if (!Object.values(TARGET_URLS_REGEX).some((r) => r.test(currentUrl))) { setErrorMessage( "Error: Invalid page. please open the 𝕏 following or blocking or list page.", @@ -355,11 +347,12 @@ function IndexPopup() { href={message.documentLink} target="_blank" rel="noreferrer" - className="link" + className="link ml-2" > Learn more )} + . )}