Check for window.GEO in getCountryCode
Followup of Id8d7356e Change-Id: Ib89d72d35e69742797ffb29c0eb10897c410cc83
This commit is contained in:
@@ -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