From b2fbe18214300d932af3d7a24eb610cbd9e9aee5 Mon Sep 17 00:00:00 2001 From: Richard Bergsma Date: Thu, 24 Jul 2025 14:57:01 +0200 Subject: [PATCH] Enhance RocketChat livechat initialization with detailed logging - Added console logs to track the initialization process of the RocketChat livechat widget, including the setting of the URL and script loading status. - Improved error handling by logging warnings when the script tag is not found or when the script fails to load. - Ensured that the script loads correctly based on the DOM readiness state, enhancing reliability and user experience. --- src/layouts/Layout.astro | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index b02c17b..aeb0c65 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -89,6 +89,8 @@ const { language, textDirection } = I18N;