fix: use new URL instead of URL.parse

This commit is contained in:
Stavros
2025-02-11 18:31:31 +02:00
parent b2f4041e09
commit 3c9bc8c67f

View File

@@ -31,9 +31,9 @@ export const ContinuePage = () => {
}, 500); }, 500);
}; };
const urlParsed = URL.parse(redirectUri); const uri = new URL(redirectUri);
if (urlParsed === null) { if (uri === null) {
return ( return (
<ContinuePageLayout> <ContinuePageLayout>
<Text size="xl" fw={700}> <Text size="xl" fw={700}>
@@ -49,7 +49,7 @@ export const ContinuePage = () => {
if ( if (
window.location.protocol === "https:" && window.location.protocol === "https:" &&
urlParsed.protocol === "http:" uri.protocol === "http:"
) { ) {
return ( return (
<ContinuePageLayout> <ContinuePageLayout>