mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-18 02:47:03 -04:00
fix circular import bricking browser version
This commit is contained in:
parent
0f74817e25
commit
f39f16d34b
3 changed files with 26 additions and 19 deletions
|
@ -17,8 +17,8 @@
|
|||
*/
|
||||
|
||||
import { proxyLazy } from "@utils/lazy";
|
||||
import { LazyComponent } from "@utils/lazyReact";
|
||||
import { Logger } from "@utils/Logger";
|
||||
import { LazyComponent } from "@utils/react";
|
||||
import type { WebpackInstance } from "discord-types/other";
|
||||
|
||||
import { traceFunction } from "../debug/Tracer";
|
||||
|
@ -338,9 +338,6 @@ export function waitFor(filter: string | string[] | FilterFn, callback: Callback
|
|||
else if (typeof filter !== "function")
|
||||
throw new Error("filter must be a string, string[] or function, got " + typeof filter);
|
||||
|
||||
const [existing, id] = find(filter!, { isIndirect: true, isWaitFor: true });
|
||||
if (existing) return void callback(existing, id);
|
||||
|
||||
subscriptions.set(filter, callback);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue