mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 21:47:06 +03:00
Fixed chapter skip notices not working + fixed typo
Fixed chapter skip notices not working + fixed typo Fixed chapter skip notices not working + fixed typo Fixed chapter skip notices not working + fixed typo A skip notice is now shown upon voting if one isn't already on screen minor fixes fixed commit error
This commit is contained in:
@@ -44,6 +44,14 @@ export function getUpcomingText(segments: SponsorTime[]): string {
|
||||
return chrome.i18n.getMessage(messageId).replace("{0}", categoryName);
|
||||
}
|
||||
|
||||
export function getVoteText(segments: SponsorTime[]): string {
|
||||
const categoryName = chrome.i18n.getMessage(segments.length > 1 ? "multipleSegments"
|
||||
: "category_" + segments[0].category + "_short") || chrome.i18n.getMessage("category_" + segments[0].category);
|
||||
|
||||
const messageId = "voted_on";
|
||||
return chrome.i18n.getMessage(messageId).replace("{0}", categoryName);
|
||||
}
|
||||
|
||||
|
||||
export function getCategorySuffix(category: Category): string {
|
||||
if (category.startsWith("poi_")) {
|
||||
|
||||
Reference in New Issue
Block a user