Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Djam <rdjamaile@gmail.com>
This commit is contained in:
@@ -48,7 +48,7 @@ const ConsentPageLayout = ({ children }: { children: React.ReactNode }) => (
|
||||
|
||||
function getUrlHostname(value: string): string | undefined {
|
||||
try {
|
||||
return new URL(value).hostname;
|
||||
return new URL(value).host;
|
||||
} catch {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user