Always send ref_ params (#3582)

zio/stable
dan 2024-04-16 21:28:39 +01:00 committed by GitHub
parent 2974b407be
commit a66c9d0bc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -15,12 +15,12 @@ import {useSession} from '../../state/session'
import {LogEvents} from './events'
import {Gate} from './gates'
let refSrc: string | undefined
let refUrl: string | undefined
let refSrc: string
let refUrl: string
if (isWeb && typeof window !== 'undefined') {
const params = new URLSearchParams(window.location.search)
refSrc = params.get('ref_src') ?? undefined
refUrl = params.get('ref_url') ?? undefined
refSrc = params.get('ref_src') ?? ''
refUrl = decodeURIComponent(params.get('ref_url') ?? '')
}
export type {LogEvents}