mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
test: no need for this check
This commit is contained in:
@@ -8,7 +8,7 @@ const utils = { ...require('./utils.common') };
|
||||
|
||||
utils.getLanguage = function () {
|
||||
let lang = 'en-GB';
|
||||
if (typeof window === 'object' && window.config && window.utils) {
|
||||
if (typeof window === 'object' && window.config) {
|
||||
lang = utils.params().lang || window.config.userLang || window.config.defaultLang || 'en-GB';
|
||||
}
|
||||
return lang;
|
||||
|
||||
Reference in New Issue
Block a user