diff options
Diffstat (limited to 'src/utils.ts')
-rw-r--r-- | src/utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.ts b/src/utils.ts index 1ee5781d..90bd5418 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -3,7 +3,7 @@ import { CategorySelection, SponsorTime, FetchResponse, BackgroundScriptContaine import * as CompileConfig from "../config.json"; import { findValidElement, findValidElementFromSelector } from "./utils/pageUtils"; -import { GenericUtils } from "./utils/genericUtils"; +import { waitFor } from "@ajayyy/maze-utils"; export default class Utils { @@ -31,7 +31,7 @@ export default class Utils { } async wait<T>(condition: () => T, timeout = 5000, check = 100): Promise<T> { - return GenericUtils.wait(condition, timeout, check); + return waitFor(condition, timeout, check); } /* Uses a mutation observer to wait asynchronously */ |