Made it send a request to the server to sponsor skip views.

This commit is contained in:
Ajay Ramachandran 2019-07-23 18:42:44 -04:00
parent 86bffeb96c
commit c91c08a17f

View file

@ -168,6 +168,9 @@ function sponsorCheck(sponsorTimes) { // Video skipping
openSkipNotice();
setTimeout(() => closeSkipNotice(currentUUID), 7000);
//send telemetry that a this sponsor was skipped happened
sendRequestToServer("GET", "/api/viewedVideoSponsorTime?UUID=" + currentUUID);
}
lastTime = v.currentTime;