mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
Merge pull request #457 from mchangrh/highlight_poi
force poi_highlight to be type POI
This commit is contained in:
commit
50d8c5f105
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