diff options
author | Ajay Ramachandran <[email protected]> | 2019-12-13 22:38:00 -0500 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2019-12-13 22:38:00 -0500 |
commit | 369364f5742232a6b515c1b7290c259e152a57f3 (patch) | |
tree | 3bcc4b8f4145a59775a83523781cd41ea14a7125 /content.js | |
parent | a5baebab3fe04bfab79f61e2a6c1583e781a90dc (diff) | |
download | SponsorBlock-369364f5742232a6b515c1b7290c259e152a57f3.tar.gz SponsorBlock-369364f5742232a6b515c1b7290c259e152a57f3.zip |
Fixed downvoted sponsors reappearing.
Diffstat (limited to 'content.js')
-rw-r--r-- | content.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -479,7 +479,12 @@ function updatePreviewBar() { //create an array of the sponsor types let types = []; for (let i = 0; i < localSponsorTimes.length; i++) { - types.push("sponsor"); + if (!hiddenSponsorTimes.includes(i)) { + types.push("sponsor"); + } else { + // Don't show this sponsor + types.push(null); + } } for (let i = 0; i < sponsorTimesSubmitting.length; i++) { types.push("previewSponsor"); |