unstatusify redirects

This commit is contained in:
Matthew Hodgson 2017-11-13 16:26:26 +00:00
parent 5abee4fddc
commit 0a80774066
1 changed files with 18 additions and 10 deletions

View File

@ -251,20 +251,28 @@ async function loadApp() {
if (!preventRedirect) {
if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) {
if (UserSettingsStore.getTheme() === 'status') {
window.location = "https://status.im/join-riot.html";
return;
/*if (confirm(_t("Riot is not supported on mobile web. Install the app?"))) {
}
else {
if (confirm(_t("Riot is not supported on mobile web. Install the app?"))) {
window.location = "https://itunes.apple.com/us/app/vector.im/id1083446067";
return;
}*/
}
}
}
else if (/Android/.test(navigator.userAgent)) {
if (UserSettingsStore.getTheme() === 'status') {
window.location = "https://status.im/join-riot.html";
return;
/*if (confirm(_t("Riot is not supported on mobile web. Install the app?"))) {
}
else {
if (confirm(_t("Riot is not supported on mobile web. Install the app?"))) {
window.location = "https://play.google.com/store/apps/details?id=im.vector.alpha";
return;
}*/
}
}
}
}