35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>AppFlowy</title>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", function() {
|
|
var fallbackLink = 'https://appflowy.io/download/'+window.location.search+window.location.hash;
|
|
|
|
// Mobile
|
|
const isiOS = navigator.userAgent.match(/iPad|iPhone|iPod/);
|
|
const isAndroid = navigator.userAgent.match(/Android/);
|
|
|
|
if (isiOS) {
|
|
fallbackLink = 'https://testflight.apple.com/join/6CexvkDz';
|
|
} else if (isAndroid) {
|
|
fallbackLink = 'https://play.google.com/store/apps/details?id=io.appflowy.appflowy';
|
|
}
|
|
|
|
// Attempt to redirect
|
|
window.location = 'appflowy-flutter://'+window.location.search+window.location.hash;
|
|
|
|
// Update the fallback download link
|
|
document.getElementById('download-link').href = fallbackLink;
|
|
});
|
|
</script>
|
|
|
|
<h1>Opening AppFlowy</h1>
|
|
<p>If AppFlowy does not open, you can click <a href="appflowy-flutter://">here</a> to launch the app.</p>
|
|
<p>If AppFlowy is not installed, you can <a id="download-link" href="#">download AppFlowy manually</a>.</p>
|
|
</body>
|
|
</html>
|