Skip to content

Commit

Permalink
Merge pull request #3 from harman-goei/APPS-11648
Browse files Browse the repository at this point in the history
fix(pds): APPS-11648: Fix blocking of 2nd refresh due to incorrect pd…
  • Loading branch information
Harman Goei committed May 12, 2016
2 parents 62e3d65 + b69eb2f commit b2e9550
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/adapters/openx_neo.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ var OpenxAdapter = function OpenxAdapter(options) {
}

pdFrame.src = pixelsUrl;

if (pdNode) {
pdNode = pdNode.parentNode.replaceChild(pdFrame, pdNode);
pdNode.parentNode.replaceChild(pdFrame, pdNode);
pdNode = pdFrame;
} else {
pdNode = rootNode.appendChild(pdFrame);
}
Expand Down Expand Up @@ -196,7 +197,7 @@ var OpenxAdapter = function OpenxAdapter(options) {
if (!adUnits) {
return;
}

for (let bid of bids) {
let auid = null;
let adUnit = null;
Expand Down Expand Up @@ -246,10 +247,11 @@ var OpenxAdapter = function OpenxAdapter(options) {
tws: getTWS(isIfr),
cc: 1,
ee: 'api_sync_write',
ef: 'bt%2Cdb'
ef: 'bt%2Cdb',
be: 1
},
opts);
}
};

module.exports = OpenxAdapter;
module.exports = OpenxAdapter;

0 comments on commit b2e9550

Please sign in to comment.