Skip to content

Commit

Permalink
OpenX Adapter: Fixed bug regarding cross-domain iframe support (prebi…
Browse files Browse the repository at this point in the history
  • Loading branch information
lntho authored and Will Alexander committed Mar 6, 2017
1 parent 7112f5f commit 3bcf2b2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/adapters/openx.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,13 @@ const OpenxAdapter = function OpenxAdapter() {
body;

if (isIfr) {
tWin = window.top;
tDoc = window.top.document;
try {
tWin = window.top;
tDoc = window.top.document;
}
catch (e) {
return;
}
docEl = tDoc.documentElement;
body = tDoc.body;

Expand Down

0 comments on commit 3bcf2b2

Please sign in to comment.