mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Prevent manual skipping votes from affecting to UI and happening when auto vote is off
This commit is contained in:
parent
09f244150c
commit
c0894afff9
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue