code cleanup

This commit is contained in:
Rohit Waghchaure 2019-10-15 14:42:09 +05:30
parent 66072fec5a
commit a20fb650fe

View File

@ -26,8 +26,12 @@ frappe.ready(function() {
.html('<i class="fa fa-fixed-width fa fa-user"></i> ' + full_name);
}
// set coupon code and sales partner code
var referral_coupon_code=getParams(window.location.href)['cc'];
var referral_sales_partner=getParams(window.location.href)['sp'];
var url_args = getParams(window.location.href);
var referral_coupon_code = url_args['cc'];
var referral_sales_partner = url_args['sp'];
var d = new Date();
// expires within 30 minutes
d.setTime(d.getTime() + (0.02 * 24 * 60 * 60 * 1000));