From 54ef625c16edc40e56da2caea735bf5127bf6994 Mon Sep 17 00:00:00 2001 From: stefanorosanelli Date: Wed, 8 Jan 2025 12:13:56 +0100 Subject: [PATCH] chore: test url --- components/Element/ChatbotShare.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/Element/ChatbotShare.vue b/components/Element/ChatbotShare.vue index 9c6470f..ba6bb6b 100644 --- a/components/Element/ChatbotShare.vue +++ b/components/Element/ChatbotShare.vue @@ -14,7 +14,7 @@

{{ $t('ADD_CHATBOT_IFRAME') }}:

<iframe
-   src="{{ protocol }}//{{ host }}/chatbot-iframe/{{ uuid }}"
+   src="{{ iframeSrc }}"
  style="height: 30rem; width: 24rem"
>
</iframe> @@ -52,9 +52,9 @@ const props = defineProps({ name: { type: String, default: '' }, }); -const host = window.location.host; -const protocol = window.location.protocol; -const iframeSrc = ref('/chatbot-iframe/' + props.uuid); +// const baseUrl = `${window.location.protocol}//${window.location.host}/chatbot-iframe`; +const baseUrl = 'https://test-zanichelli-chatbot.brevia.app/chatbot'; +const iframeSrc = `${baseUrl}/${props.uuid}`; const iframeVisible = ref(false); const shouldPreloadIframe = ref(true); const codeArea = ref();