failed attempt at integrating generators

This commit is contained in:
Sam Lavigne 2023-08-25 16:14:29 -04:00
parent b6971ca92e
commit d692498e4e
1 changed files with 3 additions and 1 deletions

View File

@ -12,8 +12,10 @@
function selectFilters(sel) {
if (sel == "video") {
return FILTERS.filter((f) => f.type[0] === "V" || f.type === "N->V");
// return FILTERS.filter((f) => f.type.startsWith("V") || f.type.endsWith("V"));
return FILTERS.filter((f) => f.type[0] === "V" || (f.type[0] === "|") || f.type === "N->V");
} else if (sel == "audio") {
// return FILTERS.filter((f) => f.type.startsWith("A") || f.type.endsWith("A"));
return FILTERS.filter((f) => f.type[0] === "A" || f.type === "N->A");
} else {
return [...FILTERS];