Fix youtube not working when player is inside shadow dom
This commit is contained in:
parent
11e48b0181
commit
5a164780d8
@ -147,7 +147,7 @@ const youtube = {
|
||||
|
||||
// Setup instance
|
||||
// https://developers.google.com/youtube/iframe_api_reference
|
||||
player.embed = new window.YT.Player(id, {
|
||||
player.embed = new window.YT.Player(player.media, {
|
||||
videoId,
|
||||
host: getHost(config),
|
||||
playerVars: extend(
|
||||
|
Loading…
x
Reference in New Issue
Block a user