mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-14 23:47:04 +03:00
Prevent manual skipping votes from affecting to UI and happening when auto vote is off
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user