Compare commits

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