Fix some JSHint issues
Change-Id: Iecb1f2d2d326260075755070882b7706c1ae7db4
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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 ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user