Return a promise for getReferrerInfoAsync
on web (#4777)
This commit is contained in:
parent
cd9bba4b69
commit
f021c06468
1 changed files with 1 additions and 2 deletions
|
@ -7,7 +7,7 @@ export function getGooglePlayReferrerInfoAsync(): Promise<GooglePlayReferrerInfo
|
|||
throw new NotImplementedError()
|
||||
}
|
||||
|
||||
export function getReferrerInfoAsync(): Promise<ReferrerInfo | null> {
|
||||
export async function getReferrerInfoAsync(): Promise<ReferrerInfo | null> {
|
||||
if (
|
||||
Platform.OS === 'web' &&
|
||||
// for ssr
|
||||
|
@ -29,6 +29,5 @@ export function getReferrerInfoAsync(): Promise<ReferrerInfo | null> {
|
|||
console.error('Failed to parse referrer URL')
|
||||
}
|
||||
}
|
||||
|
||||
return null
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue