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