mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 05:57:07 +03:00
Made autovote only happen if view counting is enabled
This commit is contained in:
@@ -516,10 +516,10 @@ function skipToTime(v, index, sponsorTimes, openNotice) {
|
||||
//send telemetry that a this sponsor was skipped happened
|
||||
if (trackViewCount) {
|
||||
sendRequestToServer("GET", "/api/viewedVideoSponsorTime?UUID=" + currentUUID);
|
||||
}
|
||||
|
||||
//vote on this
|
||||
vote(1, currentUUID, true);
|
||||
//upvote this
|
||||
vote(1, currentUUID, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user