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>
pull/5640/head
Travis Ralston 2017-11-17 22:15:35 -07:00
parent 7130f4aee8
commit aab044a14c
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ async function loadApp() {
}
async function loadLanguage() {
const prefLang = SettingsStore.getValue("language");
const prefLang = SettingsStore.getValue("language", null, /*excludeDefault=*/true);
let langs = [];
if (!prefLang) {