From 1276a35f313e52e9626fce28f1162a555c6da5c2 Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Mon, 15 Oct 2012 11:01:19 +0530 Subject: [PATCH] Check for window.GEO in getCountryCode Followup of Id8d7356e Change-Id: Ib89d72d35e69742797ffb29c0eb10897c410cc83 --- resources/js/ext.uls.geoclient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/ext.uls.geoclient.js b/resources/js/ext.uls.geoclient.js index 7d66530e..10e95d60 100644 --- a/resources/js/ext.uls.geoclient.js +++ b/resources/js/ext.uls.geoclient.js @@ -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 = {