redirect to test flight page ios

This commit is contained in:
Andrea Maria Piana 2018-06-29 08:33:59 +02:00
parent b973007e42
commit ade32a1dc4
1 changed files with 5 additions and 1 deletions

View File

@ -17,13 +17,17 @@
return userAgent.toLowerCase().indexOf("iphone") > -1;
}
function testFlightURL() {
return "https://status.im/success";
}
$(document).ready(function () {
var appStoreLink = $("#app-store-link");
if (isAndroid(navigator.userAgent)) {
appStoreLink.attr('href', buildPlayStoreUrl());
} else if (isIOS(navigator.userAgent)) {
appStoreLink.attr('href', buildItunesUrl());
appStoreLink.attr('href', testFlightURL());
} else {
appStoreLink.attr('href', buildPlayStoreUrl());
}