aboutsummaryrefslogtreecommitdiffhomepage
path: root/content.js
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2019-12-13 22:38:00 -0500
committerAjay Ramachandran <[email protected]>2019-12-13 22:38:00 -0500
commit369364f5742232a6b515c1b7290c259e152a57f3 (patch)
tree3bcc4b8f4145a59775a83523781cd41ea14a7125 /content.js
parenta5baebab3fe04bfab79f61e2a6c1583e781a90dc (diff)
downloadSponsorBlock-369364f5742232a6b515c1b7290c259e152a57f3.tar.gz
SponsorBlock-369364f5742232a6b515c1b7290c259e152a57f3.zip
Fixed downvoted sponsors reappearing.
Diffstat (limited to 'content.js')
-rw-r--r--content.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/content.js b/content.js
index 8547342f..8a22c0a9 100644
--- a/content.js
+++ b/content.js
@@ -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");