Use wmf geoip by default
Unlike freegeoip it also works with https Also moved the getCountryCode function to init, as it should be available regardless of whether we load the optional geoclient module. Bug: 40965 Change-Id: Ia18130890d09f86a93b5b61f7da7c48fcfa480c7
This commit is contained in:
committed by
Amir E. Aharoni
parent
7416740f95
commit
60242e2c53
@@ -66,6 +66,10 @@
|
||||
return ( window.navigator.language || window.navigator.userLanguage ).split( '-' )[0];
|
||||
};
|
||||
|
||||
mw.uls.getCountryCode = function () {
|
||||
return window.Geo && ( window.Geo.country || window.Geo.country_code );
|
||||
};
|
||||
|
||||
mw.uls.getAcceptLanguageList = function () {
|
||||
return mw.config.get( 'wgULSAcceptLanguageList' );
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user