We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f9fde8 commit 46e3ba1Copy full SHA for 46e3ba1
pages/tv/live.vue
@@ -21,6 +21,10 @@ const { data: shows } = await useAsyncData('shows', () =>
21
),
22
);
23
24
+const domain = computed(() => {
25
+ return new URL(baseUrl).hostname;
26
+});
27
+
28
definePageMeta({
29
layout: 'tv',
30
});
@@ -81,11 +85,10 @@ const isChatOpen = ref(true);
81
85
<transition name="chat-toggle">
82
86
<div v-show="isChatOpen" class="chat">
83
87
<iframe
84
- :src="`https://www.youtube.com/live_chat?v=${live.youtube_id}&embed_domain=localhost`"
88
+ :src="`https://www.youtube.com/live_chat?v=${live.youtube_id}&embed_domain=${domain}`"
89
allow="autoplay"
90
allowfullscreen
91
frameborder="0"
- referrerpolicy="strict-origin-when-cross-origin"
92
></iframe>
93
</div>
94
</transition>
0 commit comments