about summary refs log tree commit diff
path: root/src/Navigation.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-07-12 07:37:43 -0700
committerGitHub <noreply@github.com>2024-07-12 07:37:43 -0700
commit306f16263905eb8bca4463b735b5987aeb3cc5d1 (patch)
treea5adc40da7970454e0ac55a277b68d624f2c7b27 /src/Navigation.tsx
parentf021c06468820773fafeb93d14deecff81e08a17 (diff)
downloadvoidsky-306f16263905eb8bca4463b735b5987aeb3cc5d1.tar.zst
Make all referrer info sync (#4782)
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r--src/Navigation.tsx17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx
index 8c815a3fe..9e9b49443 100644
--- a/src/Navigation.tsx
+++ b/src/Navigation.tsx
@@ -771,15 +771,14 @@ function logModuleInitTime() {
   })
 
   if (isWeb) {
-    Referrer.getReferrerInfoAsync().then(info => {
-      if (info && info.hostname !== 'bsky.app') {
-        logEvent('deepLink:referrerReceived', {
-          to: window.location.href,
-          referrer: info?.referrer,
-          hostname: info?.hostname,
-        })
-      }
-    })
+    const referrerInfo = Referrer.getReferrerInfo()
+    if (referrerInfo && referrerInfo.hostname !== 'bsky.app') {
+      logEvent('deepLink:referrerReceived', {
+        to: window.location.href,
+        referrer: referrerInfo?.referrer,
+        hostname: referrerInfo?.hostname,
+      })
+    }
   }
 
   if (__DEV__) {