MediaWiki:Common.js: Difference between revisions

Content deleted Content added
indentation to tabs
showing country confirm by default now
Line 85:
if ( document.getElementById('geolocate-error') ) {
enableCountrySelect();
}
 
try {
let uri = new mw.Uri( window.location.href );
if ( uri.query.showCountryConfirm ) {
document.getElementById('country-confirm').style.display = 'block';
}
} catch (error) {
console.warn('Error parsing URL. Possibly due to unreplaced % signs?');
}