Skip to content

Commit

Permalink
OpenX Adapter: Correctly gets the page domain for cross-domain iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Ho committed Mar 2, 2017
1 parent 3e50de1 commit 2c5991c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/adapters/openx.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ const OpenxAdapter = function OpenxAdapter() {
function callBids(params) {
let isIfr,
bids = params.bids || [],
currentURL = window.location.href && encodeURIComponent(window.location.href);
currentURL = (parent !== window) ? document.referrer : window.location.href;
currentURL = currentURL && encodeURIComponent(currentURL);
try {
isIfr = window.self !== window.top;
}
Expand Down

0 comments on commit 2c5991c

Please sign in to comment.