Check for window.GEO in getCountryCode
Followup of Id8d7356e Change-Id: Ib89d72d35e69742797ffb29c0eb10897c410cc83
This commit is contained in:
1 parent
148afd77fb
commit
1276a35f31
1 file changed
+1
-1
@@ -26,7 +26,7 @@
|
||||
};
|
||||
|
||||
mw.uls.getCountryCode = function () {
|
||||
return window.GEO.country || window.GEO.country_code;
|
||||
return window.GEO && ( window.GEO.country || window.GEO.country_code );
|
||||
};
|
||||
|
||||
var settings = {
|
||||
|
||||
Reference in new issue
Block a user