diff --git a/resources/js/ext.uls.geoclient.js b/resources/js/ext.uls.geoclient.js index c5a93691..a59667a2 100644 --- a/resources/js/ext.uls.geoclient.js +++ b/resources/js/ext.uls.geoclient.js @@ -29,7 +29,7 @@ return window.Geo && ( window.Geo.country || window.Geo.country_code ); }; - var currentProto, httpOnly, + var currentProto, httpOnly, settings, service = mw.config.get( 'wgULSGeoService' ); // Call the service only if defined, and if the current @@ -39,7 +39,7 @@ httpOnly = service.substring( 0, 7 ) === 'http://'; currentProto = document.location.protocol; if ( !httpOnly || currentProto === 'http:' ) { - var settings = { + settings = { cache: true, dataType: 'jsonp', jsonpCallback: 'mw.uls.setGeo' diff --git a/resources/js/ext.uls.init.js b/resources/js/ext.uls.init.js index 1d5e97a6..651ae868 100644 --- a/resources/js/ext.uls.init.js +++ b/resources/js/ext.uls.init.js @@ -73,7 +73,7 @@ .concat( mw.uls.getPreviousLanguages() ) .concat( mw.uls.getAcceptLanguageList() ); - countryCode = mw.uls.getCountryCode() + countryCode = mw.uls.getCountryCode(); if ( countryCode ) { list = list.concat( $.uls.data.getLanguagesInTerritory( countryCode ) ); }