Skip to content

Commit

Permalink
changes to use top instead of parent
Browse files Browse the repository at this point in the history
  • Loading branch information
Susan Thai authored and Susan Thai committed Sep 20, 2018
1 parent 552f6fc commit 654dc29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gumgumBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function hasTopAccess () {

function isInSafeFrame () {
if (window.$sf) return window.$sf
else if (hasTopAccess() && window !== top) return isInSafeFrame(window.parent)
else if (hasTopAccess() && window !== top) return isInSafeFrame(window.top)
return null
}

Expand Down

0 comments on commit 654dc29

Please sign in to comment.