diff --git a/app/javascript/dashboard/components/widgets/DashboardApp/Frame.vue b/app/javascript/dashboard/components/widgets/DashboardApp/Frame.vue index 0c2c0e8ed..0ac4f52c4 100644 --- a/app/javascript/dashboard/components/widgets/DashboardApp/Frame.vue +++ b/app/javascript/dashboard/components/widgets/DashboardApp/Frame.vue @@ -38,6 +38,18 @@ export default { return this.currentChat?.meta?.sender?.id; }, }, + + mounted() { + window.onmessage = e => { + if ( + typeof e.data !== 'string' || + e.data !== 'chatwoot-dashboard-app:fetch-info' + ) { + return; + } + this.onIframeLoad(0); + }; + }, methods: { onIframeLoad(index) { const frameElement = document.getElementById(