MediaWiki:DonationForm T201415.js: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
use boolean for param.recurring
only include referrer param if needed
Line 746: Line 746:
params.utm_key = donationForm.buildUtmKey( donationForm.extraData );
params.utm_key = donationForm.buildUtmKey( donationForm.extraData );


// Strip protocol to stop firewall complaining
// TODO: do we need this?
// TODO: do we need this?
params.referrer = document.referrer.replace(/https?:\/\//i, "");
if ( document.referrer ) {
// Strip protocol to stop firewall complaining
params.referrer = document.referrer.replace(/https?:\/\//i, '');
}


uri.extend( params );
uri.extend( params );