code cleanup

This commit is contained in:
Vladimir Morozov 2019-04-04 09:32:38 +03:00
parent c22f5c4b39
commit 21539be3f2

View File

@ -34,7 +34,7 @@ function assurePlaybackState(play) {
}
}
function getYoutubeHost(config) {
function getHost(config) {
if (config.noCookie) {
return 'https://www.youtube-nocookie.com';
}
@ -159,7 +159,7 @@ const youtube = {
// https://developers.google.com/youtube/iframe_api_reference
player.embed = new window.YT.Player(id, {
videoId,
host: getYoutubeHost(config),
host: getHost(config),
playerVars: extend(
{},
{