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:
parent
f105ce0481
commit
bd7d8926a8
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue