mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-13 02:14:32 +01:00
force poi_highlight to be type POI
This commit is contained in:
parent
a3ddbef38e
commit
4da3c2d049
1 changed files with 1 additions and 0 deletions
|
@ -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 });
|
||||
|
|
Loading…
Reference in a new issue