this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'bluesky-social:main' into zh

authored by

Kuwa Lee and committed by
GitHub
b80594a5 3ea3b5a4

+21
+21
src/lib/statsig/statsig.tsx
··· 26 26 bundleDate: number 27 27 refSrc: string 28 28 refUrl: string 29 + referrer: string 30 + referrerHostname: string 29 31 appLanguage: string 30 32 contentLanguages: string[] 31 33 } ··· 33 35 34 36 let refSrc = '' 35 37 let refUrl = '' 38 + let referrer = '' 39 + let referrerHostname = '' 36 40 if (isWeb && typeof window !== 'undefined') { 37 41 const params = new URLSearchParams(window.location.search) 38 42 refSrc = params.get('ref_src') ?? '' 39 43 refUrl = decodeURIComponent(params.get('ref_url') ?? '') 44 + } 45 + 46 + if ( 47 + isWeb && 48 + typeof document !== 'undefined' && 49 + document != null && 50 + document.referrer 51 + ) { 52 + try { 53 + const url = new URL(document.referrer) 54 + if (url.hostname !== 'bsky.app') { 55 + referrer = document.referrer 56 + referrerHostname = url.hostname 57 + } 58 + } catch {} 40 59 } 41 60 42 61 export type {LogEvents} ··· 198 217 custom: { 199 218 refSrc, 200 219 refUrl, 220 + referrer, 221 + referrerHostname, 201 222 platform: Platform.OS as 'ios' | 'android' | 'web', 202 223 bundleIdentifier: BUNDLE_IDENTIFIER, 203 224 bundleDate: BUNDLE_DATE,