Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sirdata RTD Module : add eids and post content support and get ready for PBJS 9.0 #11524

Merged
merged 11 commits into from
May 28, 2024
Prev Previous commit
Next Next commit
fix expression vs expected assignment
  • Loading branch information
nouchy committed May 21, 2024
commit 340942364091b3e0684327581d2adab6bfee6dd8
2 changes: 1 addition & 1 deletion modules/sirdataRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@
// Clean any potential PII
content.documentElement.innerHTML = removePII(content.documentElement.innerHTML);
// Compress the content
content.documentElement.innerHTML = content.documentElement.innerHTML.replace(/\s+/g, ' ').replace(/>\s+</g, '><').replace(/<!--[\s\S]*?-->/g, '')
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Show resolved Hide resolved
}
return content;
}
Expand Down Expand Up @@ -681,7 +681,7 @@
if (xandrData.segments.length > 0) {
setOrtb2(reqBids.ortb2Fragments?.bidder, bid.bidder, 'user.keywords', `sd_rtd=${xandrData.segments.join(',sd_rtd=')}`);
}
if (sirdataData.categories.length > 0) {
if (xandrData.categories.length > 0) {
setOrtb2(reqBids.ortb2Fragments?.bidder, bid.bidder, 'site.content.keywords', `sd_rtd=${xandrData.categories.join(',sd_rtd=')}`);
}
} else {
Expand Down