Skip to content

Commit

Permalink
PBID-11: Try to access eid property only when parrableId object exists
Browse files Browse the repository at this point in the history
  • Loading branch information
icflournoy committed May 13, 2020
1 parent 39a7ad4 commit 6ba511b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/parrableIdSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,12 @@ function fetchId(configParams) {
migrateLegacyCookies(parrableId);
}

const eid = (parrableId) ? parrableId.eid : null;
const refererInfo = getRefererInfo();
const uspString = uspDataHandler.getConsentData();

const data = {
eid: (parrableId && parrableId.eid) || null,
eid,
trackers: configParams.partner.split(','),
url: refererInfo.referer
};
Expand Down

0 comments on commit 6ba511b

Please sign in to comment.