Skip to content

Node.js based forum software built for the modern web

test: no need for this check

Barış Soner Uşaklıbb4be716d4e1
diff --git a/public/src/utils.js b/public/src/utils.js
index c97c785c32..863b8f0c40 100644
--- a/public/src/utils.js
+++ b/public/src/utils.js
@@ -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;