mirror of https://github.com/vector-im/riot-web
Don't show mobile guide if deep linking
Other part of https://github.com/vector-im/riot-web/issues/7378pull/7414/head
parent
ac81080185
commit
894e31fe73
|
@ -251,7 +251,9 @@ async function loadApp() {
|
||||||
|
|
||||||
// don't try to redirect to the native apps if we're
|
// don't try to redirect to the native apps if we're
|
||||||
// verifying a 3pid (but after we've loaded the config)
|
// verifying a 3pid (but after we've loaded the config)
|
||||||
const preventRedirect = Boolean(fragparts.params.client_secret);
|
// or if the user is following a deep link
|
||||||
|
// (https://github.com/vector-im/riot-web/issues/7378)
|
||||||
|
const preventRedirect = fragparts.params.client_secret || fragparts.location.length > 0;
|
||||||
|
|
||||||
if (!preventRedirect) {
|
if (!preventRedirect) {
|
||||||
const isIos = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
const isIos = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
||||||
|
|
Loading…
Reference in New Issue