Skip to content

Commit

Permalink
fix cedato adapter user sync logic (prebid#4060)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkh13 authored and sa1omon committed Nov 28, 2019
1 parent cf63c27 commit fb59ce4
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions modules/cedatoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,10 @@ export const spec = {

getUserSyncs: function(syncOptions, resps, gdprConsent) {
const syncs = [];
if (syncOptions.pixelEnabled) {
resps.forEach(() => {
syncs.push(getSync('image', gdprConsent));
});
}
if (syncOptions.iframeEnabled) {
resps.forEach(() => {
syncs.push(getSync('iframe', gdprConsent));
});
syncs.push(getSync('iframe', gdprConsent));
} else if (syncOptions.pixelEnabled) {
syncs.push(getSync('image', gdprConsent));
}
return syncs;
}
Expand Down

0 comments on commit fb59ce4

Please sign in to comment.