mirror of
https://github.com/RobinRMC/VencordPlus.git
synced 2025-05-11 09:55:44 +02:00
fix some minor bugs
This commit is contained in:
parent
da50c7a19b
commit
3ebde1aae8
3 changed files with 5 additions and 4 deletions
|
@ -428,10 +428,11 @@ function runTime(token: string) {
|
|||
|
||||
if (searchType === "findComponent") method = "find";
|
||||
if (searchType === "findExportedComponent") method = "findByProps";
|
||||
if (searchType === "waitFor" || searchType === "waitForComponent" || searchType === "waitForStore") {
|
||||
if (searchType === "waitFor" || searchType === "waitForComponent") {
|
||||
if (typeof args[0] === "string") method = "findByProps";
|
||||
else method = "find";
|
||||
}
|
||||
if (searchType === "waitForStore") method = "findStore";
|
||||
|
||||
try {
|
||||
let result: any;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue