mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 05:57:07 +03:00
Switched skipping to use category settings.
Submission editing is now broken as well as clicking submit. Skipping through multiple submissions just treats it as skipping from one (no multiple vote options).
This commit is contained in:
@@ -5,13 +5,13 @@ import SkipNoticeComponent from "../components/SkipNoticeComponent";
|
||||
|
||||
class SkipNotice {
|
||||
UUID: string;
|
||||
manualSkip: boolean;
|
||||
autoSkip: boolean;
|
||||
// Contains functions and variables from the content script needed by the skip notice
|
||||
contentContainer: () => any;
|
||||
|
||||
constructor(UUID: string, manualSkip: boolean = false, contentContainer) {
|
||||
constructor(UUID: string, autoSkip: boolean = false, contentContainer) {
|
||||
this.UUID = UUID;
|
||||
this.manualSkip = manualSkip;
|
||||
this.autoSkip = autoSkip;
|
||||
this.contentContainer = contentContainer;
|
||||
|
||||
//get reference node
|
||||
@@ -41,7 +41,7 @@ class SkipNotice {
|
||||
referenceNode.prepend(noticeElement);
|
||||
|
||||
ReactDOM.render(
|
||||
<SkipNoticeComponent UUID={UUID} manualSkip={manualSkip} contentContainer={contentContainer} />,
|
||||
<SkipNoticeComponent UUID={UUID} autoSkip={autoSkip} contentContainer={contentContainer} />,
|
||||
noticeElement
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user