Always send ref_ params (#3582)
parent
2974b407be
commit
a66c9d0bc4
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue