1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00

Fix ads on playlists

This commit is contained in:
DanielnetoDotCom 2021-03-03 17:59:50 -03:00
parent 8d44f61f97
commit a99b6c8695

View file

@ -249,7 +249,6 @@ function reloadAdsIfIsReady() {
console.log('reloadAdsIfIsReady player.readyState() = ' + player.readyState());
clearTimeout(_reloadAdsTimeout);
if (player.ima) {
if (player.readyState() > 2) {
console.log('reloadAdsIfIsReady is ready');
try {
var adTagUrl;
@ -273,7 +272,6 @@ function reloadAdsIfIsReady() {
}, 100);
}
}
}
/**
*