aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFlorianZahn <[email protected]>2021-10-09 08:13:02 +0200
committerFlorianZahn <[email protected]>2021-10-09 08:13:02 +0200
commit844567dcdf15b5349981053e8e4888dfd6e51071 (patch)
tree25b1563a359db6c8c3ff4516cbc269200a3eeb13
parent52ed4f73f4e252ea517ca4f1a8e0b0ff41c855f3 (diff)
downloadSponsorBlock-844567dcdf15b5349981053e8e4888dfd6e51071.tar.gz
SponsorBlock-844567dcdf15b5349981053e8e4888dfd6e51071.zip
Lit fixes
-rw-r--r--src/components/SkipNoticeComponent.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx
index 4fadcfb7..7ad24253 100644
--- a/src/components/SkipNoticeComponent.tsx
+++ b/src/components/SkipNoticeComponent.tsx
@@ -651,9 +651,9 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
afterVote(segment: SponsorTime, type: number, category: Category): void {
const index = this.segments.findIndex(x => x.UUID === segment.UUID);
+ const wikiLinkText = Config.config.wikiPages.get(segment.category);
switch (type) {
case 0:
- const wikiLinkText = Config.config.wikiPages.get(segment.category);
this.setNoticeInfoMessageWithOnClick(() => window.open(wikiLinkText), chrome.i18n.getMessage("OpenCategoryWikiPage"));
this.setState({
voted: utils.replaceArrayElement(this.state.voted, SkipNoticeAction.Downvote, index)
@@ -724,7 +724,7 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
}
}
- resetStateToStart(actionState: SkipNoticeAction = SkipNoticeAction.None, editing: boolean = false, choosingCategory: boolean = false): void {
+ resetStateToStart(actionState: SkipNoticeAction = SkipNoticeAction.None, editing = false, choosingCategory = false): void {
actionState ??= SkipNoticeAction.None;
editing ??= false;
choosingCategory ??= false;