mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Made it send a request to the server to sponsor skip views.
This commit is contained in:
parent
86bffeb96c
commit
c91c08a17f
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue