mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-10-26 22:37:00 +00:00
show message previews only after the widget loads
This commit is contained in:
+2
-1
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user