about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-10-10 09:15:24 -0700
committerGitHub <noreply@github.com>2024-10-10 09:15:24 -0700
commit676e6269e72f5e3ab4f394ca6cc0296945fe5210 (patch)
tree12ceac20264d7ddd869a5cc09ec3116e62eb5f25 /src
parent28419447891edb17101876fe9ca3c749b4802313 (diff)
downloadvoidsky-676e6269e72f5e3ab4f394ca6cc0296945fe5210.tar.zst
Show download button for Apple (#5671)
Diffstat (limited to 'src')
-rw-r--r--src/screens/StarterPack/StarterPackLandingScreen.tsx2
-rw-r--r--src/view/com/auth/SplashScreen.web.tsx8
2 files changed, 8 insertions, 2 deletions
diff --git a/src/screens/StarterPack/StarterPackLandingScreen.tsx b/src/screens/StarterPack/StarterPackLandingScreen.tsx
index 86ff5976e..ec31fc21d 100644
--- a/src/screens/StarterPack/StarterPackLandingScreen.tsx
+++ b/src/screens/StarterPack/StarterPackLandingScreen.tsx
@@ -47,7 +47,7 @@ interface AppClipMessage {
   jsonToStore?: string
 }
 
-function postAppClipMessage(message: AppClipMessage) {
+export function postAppClipMessage(message: AppClipMessage) {
   // @ts-expect-error safari webview only
   window.webkit.messageHandlers.onMessage.postMessage(JSON.stringify(message))
 }
diff --git a/src/view/com/auth/SplashScreen.web.tsx b/src/view/com/auth/SplashScreen.web.tsx
index a850ea80a..e8a7c7373 100644
--- a/src/view/com/auth/SplashScreen.web.tsx
+++ b/src/view/com/auth/SplashScreen.web.tsx
@@ -9,7 +9,10 @@ import {useKawaiiMode} from '#/state/preferences/kawaii'
 import {ErrorBoundary} from '#/view/com/util/ErrorBoundary'
 import {Logo} from '#/view/icons/Logo'
 import {Logotype} from '#/view/icons/Logotype'
-import {AppClipOverlay} from '#/screens/StarterPack/StarterPackLandingScreen'
+import {
+  AppClipOverlay,
+  postAppClipMessage,
+} from '#/screens/StarterPack/StarterPackLandingScreen'
 import {atoms as a, useTheme} from '#/alf'
 import {AppLanguageDropdown} from '#/components/AppLanguageDropdown'
 import {Button, ButtonText} from '#/components/Button'
@@ -36,6 +39,9 @@ export const SplashScreen = ({
     const clip = getParams.get('clip')
     if (clip === 'true') {
       setShowClipOverlay(true)
+      postAppClipMessage({
+        action: 'present',
+      })
     }
   }, [])