mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Update Riot -> Element in index.ts
This commit is contained in:
parent
20c6e6dd73
commit
10d6fbaef7
@ -80,7 +80,7 @@ const supportedBrowser = checkBrowserFeatures();
|
|||||||
// try in react but fallback to an `alert`
|
// try in react but fallback to an `alert`
|
||||||
// We start loading stuff but don't block on it until as late as possible to allow
|
// We start loading stuff but don't block on it until as late as possible to allow
|
||||||
// the browser to use as much parallelism as it can.
|
// the browser to use as much parallelism as it can.
|
||||||
// Load parallelism is based on research in https://github.com/vector-im/riot-web/issues/12253
|
// Load parallelism is based on research in https://github.com/vector-im/element-web/issues/12253
|
||||||
async function start() {
|
async function start() {
|
||||||
// load init.ts async so that its code is not executed immediately and we can catch any exceptions
|
// load init.ts async so that its code is not executed immediately and we can catch any exceptions
|
||||||
const {
|
const {
|
||||||
@ -109,7 +109,7 @@ async function start() {
|
|||||||
// 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)
|
||||||
// or if the user is following a deep link
|
// or if the user is following a deep link
|
||||||
// (https://github.com/vector-im/riot-web/issues/7378)
|
// (https://github.com/vector-im/element-web/issues/7378)
|
||||||
const preventRedirect = fragparts.params.client_secret || fragparts.location.length > 0;
|
const preventRedirect = fragparts.params.client_secret || fragparts.location.length > 0;
|
||||||
|
|
||||||
if (!preventRedirect) {
|
if (!preventRedirect) {
|
||||||
|
Loading…
Reference in New Issue
Block a user