mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-24 16:38:41 +03:00
Merge pull request #457 from mchangrh/highlight_poi
force poi_highlight to be type POI
This commit is contained in:
@@ -106,6 +106,7 @@ type validLockArray = { category: Category, actionType: ActionType }[];
|
||||
const createLockArray = (categories: Category[], actionTypes: ActionType[]): validLockArray => {
|
||||
const validLocks: validLockArray = [];
|
||||
categories.forEach(category => {
|
||||
if (category === "poi_highlight") validLocks.push({ category, actionType: ActionType.Poi });
|
||||
actionTypes.forEach(actionType => {
|
||||
if (isValidCategoryActionPair(category, actionType)) {
|
||||
validLocks.push({ category, actionType });
|
||||
|
||||
Reference in New Issue
Block a user