Skip to content

Commit

Permalink
hotfix - undefined consent (#5127)
Browse files Browse the repository at this point in the history
Co-authored-by: Norbert Włosiński <norbert.wlosinski@justpremium.com>
  • Loading branch information
nwlosinski and Norbert Włosiński authored Apr 16, 2020
1 parent 6d45035 commit b2030e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/justpremiumBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const spec = {

getUserSyncs: function getUserSyncs(syncOptions, responses, gdprConsent, uspConsent) {
let url = 'https://pre.ads.justpremium.com/v/1.0/t/sync' + '?_c=' + 'a' + Math.random().toString(36).substring(7) + Date.now();
if (gdprConsent && (typeof gdprConsent.gdprApplies === 'boolean')) {
if (gdprConsent && (typeof gdprConsent.gdprApplies === 'boolean') && gdprConsent.gdprApplies && gdprConsent.consentString) {
url = url + '&consentString=' + encodeURIComponent(gdprConsent.consentString)
}
if (uspConsent) {
Expand Down

0 comments on commit b2030e5

Please sign in to comment.