Skip to content

Commit

Permalink
fix(ui): add parent for twitch embed (#3893)
Browse files Browse the repository at this point in the history
Fixes #3892
  • Loading branch information
sogehige committed Jun 11, 2020
1 parent 706bbd6 commit 0462993
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/panel/widgets/components/chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export default {
+ this.room
+ '/chat'
+ (this.theme === 'dark' ? '?darkpopout' : '')
+ '&parent=' + window.location.hostname
}
},
methods: {
Expand Down
2 changes: 1 addition & 1 deletion src/panel/widgets/components/twitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default {
},
computed: {
videoUrl() {
return `https://player.twitch.tv/?channel=${this.room}&autoplay=true&muted=true`
return `https://player.twitch.tv/?channel=${this.room}&autoplay=true&muted=true&parent=${window.location.hostname}`
}
},
methods: {
Expand Down

0 comments on commit 0462993

Please sign in to comment.