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

improve beacon

This commit is contained in:
Daniel 2021-08-02 16:55:17 -03:00
parent f2e527cceb
commit 1047b16303

View file

@ -468,8 +468,16 @@ function addViewBeacon() {
console.log('addViewBeacon will be sent', mediaId, playerCurrentTime, seconds_watching_video, beacon);
_addViewBeaconAdded = true;
} else {
if (typeof mediaId !== 'undefined') {
console.log('addViewBeacon mediaId is undefined');
}
if (typeof playerCurrentTime !== 'undefined') {
console.log('addViewBeacon playerCurrentTime is undefined');
}
if (typeof seconds_watching_video !== 'undefined') {
console.log('addViewBeacon seconds_watching_video is undefined');
}
}
return '';
}