diff options
author | Ajay <[email protected]> | 2024-01-16 18:21:44 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2024-01-16 18:21:44 -0500 |
commit | 814df465218d453184b7ffbc654c76078fb7a14c (patch) | |
tree | 587d0c07e41c5980969c88d8fb29901291570c1a /src | |
parent | 2bf6cf663b58fa46d2e5ce23823a38f8c2865b6a (diff) | |
download | SponsorBlock-814df465218d453184b7ffbc654c76078fb7a14c.tar.gz SponsorBlock-814df465218d453184b7ffbc654c76078fb7a14c.zip |
Don't warn about using the word intro in chapter names
Diffstat (limited to 'src')
-rw-r--r-- | src/components/SponsorTimeEditComponent.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/SponsorTimeEditComponent.tsx b/src/components/SponsorTimeEditComponent.tsx index c6369e2e..7f30f0cc 100644 --- a/src/components/SponsorTimeEditComponent.tsx +++ b/src/components/SponsorTimeEditComponent.tsx @@ -34,7 +34,7 @@ export interface SponsorTimeEditState { chapterNameSelectorHovering: boolean; } -const categoryNamesGrams: string[] = [].concat(...CompileConfig.categoryList.filter((name) => name !== "chapter") +const categoryNamesGrams: string[] = [].concat(...CompileConfig.categoryList.filter((name) => !["chapter", "intro"].includes(name)) .map((name) => chrome.i18n.getMessage("category_" + name).split(/\/|\s|-/))); class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, SponsorTimeEditState> { |