mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-31 22:25:43 +00:00
Compare commits
3 Commits
v3.0.0-alp
...
v3.0.0-alp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f35923735 | ||
|
|
b1dc5cb4cc | ||
|
|
3c9bc8c67f |
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user