fix(wait-for-element): add 100ms timeout for improve performance

This commit is contained in:
JellyBrick
2024-08-01 20:06:25 +09:00
parent 3537dc19ee
commit eabc28b39f

View File

@ -6,6 +6,6 @@ export const waitForElement = <T extends Element>(selector: string): Promise<T>
clearInterval(interval); clearInterval(interval);
resolve(elem); resolve(elem);
}); }, 100 /* ms */);
}); });
}; };