Skip to content

Commit 46e3ba1

Browse files
fix domain issue right quick
1 parent 4f9fde8 commit 46e3ba1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pages/tv/live.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ const { data: shows } = await useAsyncData('shows', () =>
2121
),
2222
);
2323
24+
const domain = computed(() => {
25+
return new URL(baseUrl).hostname;
26+
});
27+
2428
definePageMeta({
2529
layout: 'tv',
2630
});
@@ -81,11 +85,10 @@ const isChatOpen = ref(true);
8185
<transition name="chat-toggle">
8286
<div v-show="isChatOpen" class="chat">
8387
<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}`"
8589
allow="autoplay"
8690
allowfullscreen
8791
frameborder="0"
88-
referrerpolicy="strict-origin-when-cross-origin"
8992
></iframe>
9093
</div>
9194
</transition>

0 commit comments

Comments
 (0)