mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
fix supported browser logic
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
7e67085503
commit
dda1f8454a
1 changed files with 6 additions and 4 deletions
|
@ -78,10 +78,7 @@ function checkBrowserFeatures() {
|
||||||
return featureComplete;
|
return featureComplete;
|
||||||
}
|
}
|
||||||
|
|
||||||
let acceptBrowser = checkBrowserFeatures();
|
const supportedBrowser = checkBrowserFeatures();
|
||||||
if (!acceptBrowser && window.localStorage) {
|
|
||||||
acceptBrowser = Boolean(window.localStorage.getItem("mx_accepts_unsupported_browser"));
|
|
||||||
}
|
|
||||||
|
|
||||||
// React depends on Map & Set which we check for using modernizr's es6collections
|
// React depends on Map & Set which we check for using modernizr's es6collections
|
||||||
// if modernizr fails we may not have a functional react to show the error message.
|
// if modernizr fails we may not have a functional react to show the error message.
|
||||||
|
@ -148,6 +145,11 @@ async function start() {
|
||||||
// await things settling so that any errors we have to render have features like i18n running
|
// await things settling so that any errors we have to render have features like i18n running
|
||||||
await settled(loadSkinPromise, loadThemePromise, loadLanguagePromise);
|
await settled(loadSkinPromise, loadThemePromise, loadLanguagePromise);
|
||||||
|
|
||||||
|
let acceptBrowser = supportedBrowser;
|
||||||
|
if (!acceptBrowser && window.localStorage) {
|
||||||
|
acceptBrowser = Boolean(window.localStorage.getItem("mx_accepts_unsupported_browser"));
|
||||||
|
}
|
||||||
|
|
||||||
// ##########################
|
// ##########################
|
||||||
// error handling begins here
|
// error handling begins here
|
||||||
// ##########################
|
// ##########################
|
||||||
|
|
Loading…
Reference in a new issue