Skip to content

Commit

Permalink
chore: test url
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanorosanelli committed Jan 8, 2025
1 parent d882504 commit 54ef625
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/Element/ChatbotShare.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<p class="text-lg">{{ $t('ADD_CHATBOT_IFRAME') }}:</p>
<code ref="codeArea" class="w-full flex-1 bg-slate-300 p-2 rounded-md">
&lt;iframe<br />
&emsp;&emsp;src="{{ protocol }}//{{ host }}/chatbot-iframe/{{ uuid }}"<br />
&emsp;&emsp;src="{{ iframeSrc }}"<br />
&emsp;&emsp;style="height: 30rem; width: 24rem" <br />
&gt;<br />
&lt;/iframe&gt;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 54ef625

Please sign in to comment.