diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index f2adb4a70dd74..e6d1413722f5d 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -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 }), '*', );