Skip to content

Commit b640d0b

Browse files
jsnellbakerjaiminpanchal27
authored andcommitted
move uspDataHandler out of gdprDataHandler (#4562)
* move uspDataHandler out of gdprDataHandler * add missing semi-colon
1 parent 4eb1e44 commit b640d0b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/adapterManager.js

+5
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ adapterManager.makeBidRequests = function(adUnits, auctionStart, auctionId, cbTi
271271
if (gdprDataHandler.getConsentData()) {
272272
bidRequests.forEach(bidRequest => {
273273
bidRequest['gdprConsent'] = gdprDataHandler.getConsentData();
274+
});
275+
}
276+
277+
if (uspDataHandler.getConsentData()) {
278+
bidRequests.forEach(bidRequest => {
274279
bidRequest['uspConsent'] = uspDataHandler.getConsentData();
275280
});
276281
}

0 commit comments

Comments
 (0)