From 04464fb2e0f1f3e67aedea218ec49f7ff9ec2e8f Mon Sep 17 00:00:00 2001 From: Abhinav Raut Date: Sun, 20 Sep 2026 23:19:57 +0530 Subject: [PATCH] show message previews only after the widget loads --- static/widget.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/widget.js b/static/widget.js index c79d8f62..a96fa770 100644 --- a/static/widget.js +++ b/static/widget.js @@ -538,6 +538,7 @@ handleWidgetLoaded () { this.widgetLoaded = true; this.updateLauncherVisibility(); + this.renderPreviews(); } toggle () { @@ -712,7 +713,7 @@ }] }; } const enabled = data?.config?.[this.isMobile ? 'mobile' : 'desktop']; - if (!data || !enabled || this.isChatVisible || this.hideLauncher) { + if (!data || !enabled || !this.widgetLoaded || this.isChatVisible || this.hideLauncher) { this.previewHost?.remove(); this.previewHost = null; this.previewSignature = '';