Skip to content

Commit

Permalink
hotfix - undefined consent (prebid#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
2 people authored and iggyfisk committed Jun 22, 2020
1 parent e62a6b6 commit 38c66e1
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 38c66e1

Please sign in to comment.