Skip to content

Commit

Permalink
Revert "Fix v2CmpResponseCallback handle (prebid#5564)"
Browse files Browse the repository at this point in the history
This reverts commit f6ac6d6.
  • Loading branch information
BrightMountainMediaInc committed Sep 14, 2020
1 parent 966065b commit 07bdd27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/consentManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ function lookupIabConsent(cmpSuccess, cmpError, hookConfig) {
function v2CmpResponseCallback(tcfData, success) {
utils.logInfo('Received a response from CMP', tcfData);
if (success) {
if (tcfData.gdprApplies === false) {
cmpSuccess(tcfData, hookConfig);
} else if (tcfData.eventStatus === 'tcloaded' || tcfData.eventStatus === 'useractioncomplete') {
if (tcfData.eventStatus === 'tcloaded' || tcfData.eventStatus === 'useractioncomplete') {
cmpSuccess(tcfData, hookConfig);
} else if (tcfData.eventStatus === 'cmpuishown' && tcfData.tcString && tcfData.purposeOneTreatment === true) {
cmpSuccess(tcfData, hookConfig);
Expand Down

0 comments on commit 07bdd27

Please sign in to comment.