1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Fix ads on playlists

This commit is contained in:
DanielnetoDotCom 2021-03-03 19:10:30 -03:00
parent f105ce0481
commit bd7d8926a8

View file

@ -243,10 +243,10 @@ function reloadAds() {
try {
setTimeout(function () {
if (!player.ima.getAdsManager()) {
console.log('reloadAdsIfIsReady 1 change to ', _adTagUrl);
console.log('reloadAdsIfIsReady 1 ');
player.ima.requestAds();
}else{
console.log('reloadAdsIfIsReady 1 change to ', _adTagUrl);
console.log('reloadAdsIfIsReady 2 change to ', _adTagUrl);
player.ima.changeAdTag(_adTagUrl);
player.ima.requestAds();
}