Skip to content

Commit

Permalink
Return a promise for getReferrerInfoAsync on web (bluesky-social#4777)
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok authored Jul 12, 2024
1 parent cd9bba4 commit f021c06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/expo-bluesky-swiss-army/src/Referrer/index.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,6 +29,5 @@ export function getReferrerInfoAsync(): Promise<ReferrerInfo | null> {
console.error('Failed to parse referrer URL')
}
}

return null
}

0 comments on commit f021c06

Please sign in to comment.