Check for window.GEO in getCountryCode

Followup of Id8d7356e

Change-Id: Ib89d72d35e69742797ffb29c0eb10897c410cc83
This commit is contained in:
Santhosh Thottingal
2012-10-15 11:01:19 +05:30
parent 148afd77fb
commit 1276a35f31

View File

@@ -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 = {