File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,14 +147,10 @@ <h1>You're invited to Retune!</h1>
147147 // Universal link format: https://retuneapp.com/invite/{code}
148148 // iOS will handle this via associated domains (applinks:retuneapp.com)
149149
150- // Deep link for when universal link doesn't trigger
151- const deepLink = `retune://invite/${ inviteCode } ` ;
152-
153150 // App store url
154151 const appStoreURL = "https://apps.apple.com/us/app/retune-app/id6741438431" ;
155152
156153 // Show download message for all platforms
157- // If the app opens (via deep link), user won't see this. If not, they'll see download options.
158154 message . textContent = "Don't have the app?" ;
159155 content . innerHTML = `
160156 <p style="margin-bottom: 24px;">Download Retune to accept this invitation!</p>
@@ -166,16 +162,6 @@ <h1>You're invited to Retune!</h1>
166162 </div>
167163 </a>
168164 ` ;
169-
170- // Detect iOS and try deep link - if app is installed, it will open automatically
171- const isIPhone = / i P h o n e | i P a d | i P o d / i. test ( navigator . userAgent ) ;
172- if ( isIPhone ) {
173- // Use a small delay to ensure message is rendered, then attempt deep link
174- // If app opens, user won't see the page. If not, they'll see download message.
175- requestAnimationFrame ( ( ) => {
176- window . location = deepLink ;
177- } ) ;
178- }
179165 }
180166 </ script >
181167</ body >
You can’t perform that action at this time.
0 commit comments