Skip to content

Commit

Permalink
OpenX Adapter: Fixed bug regarding cross-domain iframe support
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Ho committed Jan 18, 2017
1 parent 1f40e96 commit 1245465
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 1245465

Please sign in to comment.