mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-09-21 16:45:40 +00:00
Exclude the default language on page load
This is so we correctly detect the browser language. Fixes https://github.com/vector-im/riot-web/issues/5632 Signed-off-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
7130f4aee8
commit
aab044a14c
@ -370,7 +370,7 @@ async function loadApp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function loadLanguage() {
|
async function loadLanguage() {
|
||||||
const prefLang = SettingsStore.getValue("language");
|
const prefLang = SettingsStore.getValue("language", null, /*excludeDefault=*/true);
|
||||||
let langs = [];
|
let langs = [];
|
||||||
|
|
||||||
if (!prefLang) {
|
if (!prefLang) {
|
||||||
|
Loading…
Reference in New Issue
Block a user