mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-18 10:57:04 -04:00
Fixes
This commit is contained in:
parent
6dca8bca13
commit
b8a4dff851
15 changed files with 26 additions and 33 deletions
|
@ -17,8 +17,7 @@
|
|||
*/
|
||||
|
||||
import { LazyComponent } from "@utils/react";
|
||||
|
||||
import { FilterFn, filters, lazyWebpackSearchHistory, waitFor } from "../webpack";
|
||||
import { FilterFn, filters, lazyWebpackSearchHistory, waitFor } from "@webpack";
|
||||
|
||||
export function waitForComponent<T extends React.ComponentType<any> = React.ComponentType<any> & Record<string, any>>(name: string, filter: FilterFn | string | string[]): T {
|
||||
if (IS_REPORTER) lazyWebpackSearchHistory.push(["waitForComponent", Array.isArray(filter) ? filter : [filter]]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue