MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
indentation to tabs |
showing country confirm by default now |
||
Line 85: | Line 85: | ||
if ( document.getElementById('geolocate-error') ) { |
if ( document.getElementById('geolocate-error') ) { |
||
enableCountrySelect(); |
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?'); |
|||
} |
} |
||