Skip to content

Commit eabc28b

Browse files
committed
fix(wait-for-element): add 100ms timeout for improve performance
1 parent 3537dc1 commit eabc28b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/wait-for-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export const waitForElement = <T extends Element>(selector: string): Promise<T>
66

77
clearInterval(interval);
88
resolve(elem);
9-
});
9+
}, 100 /* ms */);
1010
});
1111
};

0 commit comments

Comments
 (0)