From e04e11b34a2fcccfd381f20a98ccda15c9e8a2c6 Mon Sep 17 00:00:00 2001 From: spiduler Date: Sat, 7 Nov 2020 18:58:16 +0900 Subject: [PATCH] sdfsdf --- src/component/CaptchaComp.js | 4 ++++ 1 file changed, 4 insertions(+) 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 }