mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-04-24 04:22:21 -06:00
fix: remove invalid permission handling
This commit is contained in:
parent
13a664bad7
commit
ed98361201
@ -104,14 +104,6 @@ function IndexPopup() {
|
|||||||
currentWindow: true,
|
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))) {
|
if (!Object.values(TARGET_URLS_REGEX).some((r) => r.test(currentUrl))) {
|
||||||
setErrorMessage(
|
setErrorMessage(
|
||||||
"Error: Invalid page. please open the 𝕏 following or blocking or list page.",
|
"Error: Invalid page. please open the 𝕏 following or blocking or list page.",
|
||||||
@ -355,11 +347,12 @@ function IndexPopup() {
|
|||||||
href={message.documentLink}
|
href={message.documentLink}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
className="link"
|
className="link ml-2"
|
||||||
>
|
>
|
||||||
Learn more
|
Learn more
|
||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
|
.
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user