Prevent manual skipping votes from affecting to UI and happening when auto vote is off

This commit is contained in:
Ajay Ramachandran
2020-03-09 23:03:24 -04:00
parent 09f244150c
commit c0894afff9

View File

@@ -1,5 +1,7 @@
'use strict'; 'use strict';
import Config from "../config";
/** /**
* The notice that tells the user that a sponsor was just skipped * The notice that tells the user that a sponsor was just skipped
*/ */
@@ -305,7 +307,7 @@ class SkipNotice {
if (this.manualSkip) { if (this.manualSkip) {
this.changeNoticeTitle(chrome.i18n.getMessage("noticeTitle")); this.changeNoticeTitle(chrome.i18n.getMessage("noticeTitle"));
this.contentContainer().vote(1, this.UUID, this); if (Config.config.autoUpvote) this.contentContainer().vote(1, this.UUID);
} }
} }