Return a promise for `getReferrerInfoAsync` on web (#4777)
parent
cd9bba4b69
commit
f021c06468
|
@ -7,7 +7,7 @@ export function getGooglePlayReferrerInfoAsync(): Promise<GooglePlayReferrerInfo
|
||||||
throw new NotImplementedError()
|
throw new NotImplementedError()
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getReferrerInfoAsync(): Promise<ReferrerInfo | null> {
|
export async function getReferrerInfoAsync(): Promise<ReferrerInfo | null> {
|
||||||
if (
|
if (
|
||||||
Platform.OS === 'web' &&
|
Platform.OS === 'web' &&
|
||||||
// for ssr
|
// for ssr
|
||||||
|
@ -29,6 +29,5 @@ export function getReferrerInfoAsync(): Promise<ReferrerInfo | null> {
|
||||||
console.error('Failed to parse referrer URL')
|
console.error('Failed to parse referrer URL')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue