Skip to content

Commit

Permalink
Merge pull request #549 from nerzhei/reveal-bridge-update
Browse files Browse the repository at this point in the history
Improved compatibility with IFrames
  • Loading branch information
brianlagunas authored Dec 3, 2024
2 parents 628d173 + ebbf902 commit 44c3f2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/web/custom-visualizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ window.revealBridge = {
}

try {
if (window.top && window.top.location) {
window.top.postMessage(data, "*");
if (window.parent && window.parent.location) {
window.parent.postMessage(data, "*");
}
} catch (e) {
// window.top.postMessage couldn't be executed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ window.revealBridge = {
}

try {
if (window.top && window.top.location) {
window.top.postMessage(data, "*");
if (window.parent && window.parent.location) {
window.parent.postMessage(data, "*");
}
} catch (e) {
// window.top.postMessage couldn't be executed.
Expand Down

0 comments on commit 44c3f2e

Please sign in to comment.