Skip to content

Commit

Permalink
Always send ref_ params (#3582)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Apr 16, 2024
1 parent 2974b40 commit a66c9d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/statsig/statsig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit a66c9d0

Please sign in to comment.