Skip to content

Commit

Permalink
gdpr is just a value set, no need for conditional branching
Browse files Browse the repository at this point in the history
  • Loading branch information
curlyblueeagle committed Apr 7, 2021
1 parent f1413cb commit 8147fc0
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions modules/33acrossBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,19 +210,11 @@ function _createServerRequest({bidRequest, gdprConsent = {}, uspConsent, pageUrl
)
}

if (gdprConsent.gdprApplies === true) {
ttxRequest.regs = setExtension(
ttxRequest.regs,
'gdpr',
1
)
} else {
ttxRequest.regs = setExtension(
ttxRequest.regs,
'gdpr',
0
)
}
ttxRequest.regs = setExtension(
ttxRequest.regs,
'gdpr',
Number(gdprConsent.gdprApplies)
);

if (uspConsent) {
ttxRequest.regs = setExtension(
Expand Down

0 comments on commit 8147fc0

Please sign in to comment.