Skip to content

Commit

Permalink
Update app/app/privacity/page.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: andresfv95 <[email protected]>
  • Loading branch information
SergioAlonsoRoman and lotharking authored Oct 23, 2024
1 parent 12a956e commit 933c433
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/app/privacity/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@ const Privacity = () => {
}, [])

const urlDataGet = (urlParams: URLSearchParams | null): string => {
if (null === urlParams) {
return ''
}

if (null !== urlParams.get('oob')) {
return '/?oob=' + urlParams.get('oob')
}

if (null !== urlParams.get('_oob')) {
return '/?_oob=' + urlParams.get('_oob')
}
}

const urlData: string = urlDataGet(searchParams)
let data = ''
if (null === urlParams) {
return data
Expand Down

0 comments on commit 933c433

Please sign in to comment.