We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7a0c26 commit a527771Copy full SHA for a527771
1 file changed
app/index.html
@@ -379,7 +379,6 @@ <h1 class="title">Invalid Link</h1>
379
380
// Detect platform
381
const ua = navigator.userAgent.toLowerCase();
382
- const isAndroid = ua.includes('android');
383
384
// The URI to use for opening the app
385
const openUri = isAndroid ? intentUri : customSchemeUri;
@@ -390,10 +389,13 @@ <h1 class="title">Invalid Link</h1>
390
389
openAppBtn.href = openUri;
391
githubBtn.href = githubUrl;
392
393
- // Auto-redirect after a short delay
394
- setTimeout(function() {
395
- window.location.href = openUri;
396
- }, 1500);
+ const isAndroid = ua.includes('android');
+
+ if (!isAndroid) {
+ setTimeout(() => {
+ window.location.replace(openUri);
397
+ }, 1200);
398
+ }
399
})();
400
</script>
401
</body>
0 commit comments