mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
improve beacon
This commit is contained in:
parent
f2e527cceb
commit
1047b16303
1 changed files with 13 additions and 5 deletions
|
@ -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 '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue