Reporter: support findClassNames

This commit is contained in:
Vendicated 2026-01-23 20:05:31 +01:00
parent b4a27ea1b0
commit 709d036b03
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -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;