Skip to content

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 (#5817)
  • Loading branch information
Joffcom authored Mar 30, 2023
1 parent 6f72091 commit d86e693
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 d86e693

Please sign in to comment.