From 3c9bc8c67f6ec1cf4a9039619985376241754e52 Mon Sep 17 00:00:00 2001 From: Stavros Date: Tue, 11 Feb 2025 18:31:31 +0200 Subject: [PATCH] fix: use new URL instead of URL.parse --- site/src/pages/continue-page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site/src/pages/continue-page.tsx b/site/src/pages/continue-page.tsx index 69e23d3..ce44cdf 100644 --- a/site/src/pages/continue-page.tsx +++ b/site/src/pages/continue-page.tsx @@ -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 ( @@ -49,7 +49,7 @@ export const ContinuePage = () => { if ( window.location.protocol === "https:" && - urlParsed.protocol === "http:" + uri.protocol === "http:" ) { return (