Skip to content

Commit 7fd5cac

Browse files
committed
MC-18601: Page Builder Render
1 parent f12e3ba commit 7fd5cac

File tree

2 files changed

+12
-0
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web

2 files changed

+12
-0
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/master-format/render.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/master-format/render.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,19 @@ export default class MasterFormatRenderer {
9090
* Create a channel to communicate with our sandboxed iframe
9191
*/
9292
public setupChannel() {
93+
debugLog("Setting up channel");
9394
this.channel = new MessageChannel();
9495
const frame = this.getRenderFrame();
9596
frame.onload = () => {
97+
debugLog("onLoad called");
9698
window.addEventListener("message", (event) => {
99+
debugLog("onLoad message called");
100+
debugLog(event);
97101
if (event.data === "PB_RENDER_READY") {
98102
frame.contentWindow.postMessage("PB_RENDER_PORT", "*", [this.channel.port2]);
99103
this.ready = true;
100104
this.readyDeferred.resolve();
105+
debugLog("channel is ready");
101106
}
102107
});
103108
};

0 commit comments

Comments
 (0)