Skip to content

Commit

Permalink
Merge pull request #110 from Sanofi-IADC/bugfix/add-context-messagebus
Browse files Browse the repository at this point in the history
fix(MessageBus): context pageId if multiple iframe
  • Loading branch information
PiiXiieeS authored Apr 25, 2021
2 parents 7b78a55 + 491b124 commit 54bd952
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/proxy-page/steps/addMessageBus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default (): Step => {
if (height !== document.getElementsByTagName("BODY")[0].offsetHeight) {
height = document.getElementsByTagName("BODY")[0].offsetHeight;
window.parent.postMessage({
pageId: "${context.getPageId()}",
frameHeight: height
}, '*');
}
Expand Down

0 comments on commit 54bd952

Please sign in to comment.