Made autovote only happen if view counting is enabled

This commit is contained in:
Ajay Ramachandran
2019-08-14 22:08:23 -04:00
parent 215098f647
commit 5d075a6be4

View File

@@ -516,12 +516,12 @@ 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
//upvote this
vote(1, currentUUID, true);
}
}
}
function goBackToPreviousTime(UUID) {
if (sponsorTimes != null) {