diff --git a/frontend/src/components/CourseCard.vue b/frontend/src/components/CourseCard.vue index 83a601f5..fb99f1d4 100644 --- a/frontend/src/components/CourseCard.vue +++ b/frontend/src/components/CourseCard.vue @@ -65,7 +65,7 @@ -
+
-
+
diff --git a/frontend/src/components/StreamEmbed.vue b/frontend/src/components/StreamEmbed.vue index fcae5fe5..125deefa 100644 --- a/frontend/src/components/StreamEmbed.vue +++ b/frontend/src/components/StreamEmbed.vue @@ -93,11 +93,11 @@ const embedUrl = computed(() => { if (props.platform === 'twitch') { // Twitch requires parent= for every domain the embed runs on. - // Collect unique hostnames: current + localhost fallback - const hosts = new Set() - hosts.add(window.location.hostname || 'localhost') - // Always include localhost so dev server works too - hosts.add('localhost') + const hosts = new Set([ + 'enlightrussia.ru', + 'localhost', + window.location.hostname, + ].filter(Boolean)) const parentParams = [...hosts].map(h => `parent=${h}`).join('&') return `https://player.twitch.tv/?channel=${props.channel}&${parentParams}&autoplay=false` }