code cleanup
This commit is contained in:
parent
c22f5c4b39
commit
21539be3f2
@ -34,7 +34,7 @@ function assurePlaybackState(play) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getYoutubeHost(config) {
|
function getHost(config) {
|
||||||
if (config.noCookie) {
|
if (config.noCookie) {
|
||||||
return 'https://www.youtube-nocookie.com';
|
return 'https://www.youtube-nocookie.com';
|
||||||
}
|
}
|
||||||
@ -159,7 +159,7 @@ const youtube = {
|
|||||||
// https://developers.google.com/youtube/iframe_api_reference
|
// https://developers.google.com/youtube/iframe_api_reference
|
||||||
player.embed = new window.YT.Player(id, {
|
player.embed = new window.YT.Player(id, {
|
||||||
videoId,
|
videoId,
|
||||||
host: getYoutubeHost(config),
|
host: getHost(config),
|
||||||
playerVars: extend(
|
playerVars: extend(
|
||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user