forked from matrix/element-web
unstatusify redirects
This commit is contained in:
parent
5abee4fddc
commit
0a80774066
|
@ -251,20 +251,28 @@ async function loadApp() {
|
||||||
|
|
||||||
if (!preventRedirect) {
|
if (!preventRedirect) {
|
||||||
if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) {
|
if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) {
|
||||||
window.location = "https://status.im/join-riot.html";
|
if (UserSettingsStore.getTheme() === 'status') {
|
||||||
return;
|
window.location = "https://status.im/join-riot.html";
|
||||||
/*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;
|
return;
|
||||||
}*/
|
}
|
||||||
|
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)) {
|
else if (/Android/.test(navigator.userAgent)) {
|
||||||
window.location = "https://status.im/join-riot.html";
|
if (UserSettingsStore.getTheme() === 'status') {
|
||||||
return;
|
window.location = "https://status.im/join-riot.html";
|
||||||
/*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;
|
return;
|
||||||
}*/
|
}
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue