Return a promise for `getReferrerInfoAsync` on web (#4777)

zio/stable
Hailey 2024-07-11 19:51:54 -07:00 committed by GitHub
parent cd9bba4b69
commit f021c06468
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -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
} }