Skip to content

Commit

Permalink
[ParrableIdSystem] Supply iframe state to backend (#6278)
Browse files Browse the repository at this point in the history
* Add iframe detection

* Remove forgotten .only

Co-authored-by: Victor <[email protected]>
  • Loading branch information
icflournoy and victorigualada authored Feb 4, 2021
1 parent da1a6e9 commit 0a33349
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/parrableIdSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ function fetchId(configParams) {
const data = {
eid,
trackers: configParams.partner.split(','),
url: refererInfo.referer
url: refererInfo.referer,
isIframe: utils.inIframe(),
};

const searchParams = {
Expand Down
3 changes: 2 additions & 1 deletion test/spec/modules/parrableIdSystem_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ describe('Parrable ID System', function() {
expect(data).to.deep.equal({
eid: P_COOKIE_EID,
trackers: P_CONFIG_MOCK.params.partner.split(','),
url: getRefererInfo().referer
url: getRefererInfo().referer,
isIframe: true
});

server.requests[0].respond(200,
Expand Down

0 comments on commit 0a33349

Please sign in to comment.