Skip to content

Commit

Permalink
Revert "Return a promise for getReferrerInfoAsync on web (#4777)"
Browse files Browse the repository at this point in the history
This reverts commit f021c06.
  • Loading branch information
haileyok committed Aug 1, 2024
1 parent 2f58d97 commit 87bd119
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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 async function getReferrerInfoAsync(): Promise<ReferrerInfo | null> {
export function getReferrerInfoAsync(): Promise<ReferrerInfo | null> {
if (
Platform.OS === 'web' &&
// for ssr
Expand All @@ -29,5 +29,6 @@ export async function getReferrerInfoAsync(): Promise<ReferrerInfo | null> {
console.error('Failed to parse referrer URL')
}
}

return null
}

0 comments on commit 87bd119

Please sign in to comment.