1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00

Fix ads on playlists

This commit is contained in:
DanielnetoDotCom 2021-03-03 17:37:29 -03:00
parent 07cd90c7f2
commit ae984feaa6

View file

@ -241,7 +241,7 @@ function reloadAds() {
console.log('reloadAds');
if (player) {
if (typeof player.ima != 'undefined') {
if (player.isReady_) {
if (player.isReady_ && player.readyState() > 2) {
console.log('reloadAds is ready');
try {
var adTagUrl;