From c0894afff98478a7b98b68c69281a7386948fb24 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 9 Mar 2020 23:03:24 -0400 Subject: [PATCH] Prevent manual skipping votes from affecting to UI and happening when auto vote is off --- src/js-components/skipNotice.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js-components/skipNotice.ts b/src/js-components/skipNotice.ts index 3e981851..ec55f9b7 100644 --- a/src/js-components/skipNotice.ts +++ b/src/js-components/skipNotice.ts @@ -1,5 +1,7 @@ 'use strict'; +import Config from "../config"; + /** * The notice that tells the user that a sponsor was just skipped */ @@ -305,7 +307,7 @@ class SkipNotice { if (this.manualSkip) { this.changeNoticeTitle(chrome.i18n.getMessage("noticeTitle")); - this.contentContainer().vote(1, this.UUID, this); + if (Config.config.autoUpvote) this.contentContainer().vote(1, this.UUID); } }