lang ended up as "(null)" and docs from debug.html didn't load

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ie007dbdc2d4066c657d2a1cd05c6f4532404495b
This commit is contained in:
Caolán McNamara 2024-01-19 15:01:15 +00:00 committed by Henry Castro
parent 15f49bbb7e
commit d40acc283b

View file

@ -1113,9 +1113,9 @@ window.app = {
}
}
var lang = encodeURIComponent(global.coolParams.get('lang'));
var lang = global.coolParams.get('lang');
if (lang)
global.langParam = lang;
global.langParam = encodeURIComponent(lang);
else
global.langParam = 'en-US';
global.langParamLocale = new Intl.Locale(global.langParam);