Skip to content

Commit aab044a

Browse files
committed
Exclude the default language on page load
This is so we correctly detect the browser language. Fixes element-hq#5632 Signed-off-by: Travis Ralston <travpc@gmail.com>
1 parent 7130f4a commit aab044a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vector/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ async function loadApp() {
370370
}
371371

372372
async function loadLanguage() {
373-
const prefLang = SettingsStore.getValue("language");
373+
const prefLang = SettingsStore.getValue("language", null, /*excludeDefault=*/true);
374374
let langs = [];
375375

376376
if (!prefLang) {

0 commit comments

Comments
 (0)