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