mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-29 21:25:43 +00:00
fix: use new URL instead of URL.parse
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user