Skip to content

Commit 5063fef

Browse files
committed
Redirect to instructions page if user on mobile
1 parent b9e2b59 commit 5063fef

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎src/vector/index.js‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,16 +250,20 @@ async function loadApp() {
250250

251251
if (!preventRedirect) {
252252
if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) {
253-
if (confirm(_t("Riot is not supported on mobile web. Install the app?"))) {
253+
window.location = "https://status.im/join-riot.html";
254+
return;
255+
/*if (confirm(_t("Riot is not supported on mobile web. Install the app?"))) {
254256
window.location = "https://itunes.apple.com/us/app/vector.im/id1083446067";
255257
return;
256-
}
258+
}*/
257259
}
258260
else if (/Android/.test(navigator.userAgent)) {
259-
if (confirm(_t("Riot is not supported on mobile web. Install the app?"))) {
261+
window.location = "https://status.im/join-riot.html";
262+
return;
263+
/*if (confirm(_t("Riot is not supported on mobile web. Install the app?"))) {
260264
window.location = "https://play.google.com/store/apps/details?id=im.vector.alpha";
261265
return;
262-
}
266+
}*/
263267
}
264268
}
265269

0 commit comments

Comments
 (0)