diff --git a/src/component/CaptchaComp.js b/src/component/CaptchaComp.js index d98eb26..c3c96ca 100644 --- a/src/component/CaptchaComp.js +++ b/src/component/CaptchaComp.js @@ -33,6 +33,10 @@ class CaptchaComp { } } + sleep(m) { + return new Promise(r => setTimeout(r, m)) + } + isCaptchaPage(html) { return html.indexOf('hcaptcha') > -1 || html.indexOf('www.google.com/recaptcha/api2/anchor') > -1 }