From f4a961c39325c0f9d6d9c67a4dae5b51b3354e44 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 2 Aug 2021 16:35:16 -0300 Subject: [PATCH] improve beacon --- view/js/script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/view/js/script.js b/view/js/script.js index 0dc54537ae..9caa3c29e4 100644 --- a/view/js/script.js +++ b/view/js/script.js @@ -459,6 +459,7 @@ function addViewBeacon() { if (typeof mediaId !== 'undefined' && typeof playerCurrentTime !== 'undefined' && typeof seconds_watching_video !== 'undefined') { console.log('addViewBeacon will be sent', mediaId, playerCurrentTime, seconds_watching_video); + var url = webSiteRootURL + 'objects/videoAddViewCount.json.php?PHPSESSID=' + PHPSESSID; let data = new FormData(); data.append('id', mediaId); data.append('currentTime', playerCurrentTime);