Reporter: support findClassNames
This commit is contained in:
parent
b4a27ea1b0
commit
709d036b03
1 changed files with 3 additions and 1 deletions
|
|
@ -25,7 +25,6 @@ import definePlugin, { OptionType, ReporterTestable } from "@utils/types";
|
|||
import { filters, findAll, search } from "@webpack";
|
||||
|
||||
const PORT = 8485;
|
||||
const NAV_ID = "dev-companion-reconnect";
|
||||
|
||||
const logger = new Logger("DevCompanion");
|
||||
|
||||
|
|
@ -205,6 +204,9 @@ function initWs(isManual = false) {
|
|||
case "":
|
||||
results = findAll(parsedArgs[0]);
|
||||
break;
|
||||
case "CssClasses":
|
||||
results = findAll(filters.byClassNames(...parsedArgs), { topLevelOnly: true });
|
||||
break;
|
||||
case "ByProps":
|
||||
results = findAll(filters.byProps(...parsedArgs));
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue