Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.register.setCampaignWithUrl((data, raw) => {
const finalData = {
url: data.url,
};
if (!this.isMerchant) {
const shopgateUrl = new SGLink(data.url);
shopgateUrl.setUtmParams(data, raw);
finalData.url = shopgateUrl.toString();
}
this.appHandler.setCampaignWithUrl(finalData, this.cmdParams);
return false;
});