Skip to content
/ qp-n8n Public
forked from n8n-io/n8n

Commit

Permalink
fix(editor): Fix issue preventing execution preview loading when in a…
Browse files Browse the repository at this point in the history
…n iframe (n8n-io#5817)
  • Loading branch information
Joffcom authored and sunilrr committed Apr 24, 2023
1 parent 40ac39e commit d7a7c9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/editor-ui/src/views/NodeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3885,8 +3885,8 @@ export default mixins(
this.bindCanvasEvents();
} catch {} // This will break if mounted after jsplumb has been initiated from executions preview, so continue if it breaks
await this.initView();
if (window.top) {
window.top.postMessage(
if (window.parent) {
window.parent.postMessage(
JSON.stringify({ command: 'n8nReady', version: this.rootStore.versionCli }),
'*',
);
Expand Down

0 comments on commit d7a7c9f

Please sign in to comment.