From d40acc283b034890f48c4a3f9c5a6b5cb7882ccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 19 Jan 2024 15:01:15 +0000 Subject: [PATCH] lang ended up as "(null)" and docs from debug.html didn't load MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Caolán McNamara Change-Id: Ie007dbdc2d4066c657d2a1cd05c6f4532404495b --- browser/js/global.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/js/global.js b/browser/js/global.js index da19e677d..f78d8962f 100644 --- a/browser/js/global.js +++ b/browser/js/global.js @@ -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);