From 19c595ed7cb56421a216fb1ad8f35ec430628787 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 20 Jun 2015 22:41:34 -0700 Subject: [PATCH] Fix focusing on submit button when using new noscript captcha. --- src/Posting/Captcha.v2.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Posting/Captcha.v2.coffee b/src/Posting/Captcha.v2.coffee index 3e4c7de0d..93c5920ac 100644 --- a/src/Posting/Captcha.v2.coffee +++ b/src/Posting/Captcha.v2.coffee @@ -175,7 +175,7 @@ Captcha.v2 = $.set 'captchas', @captchas @count() - focus = d.activeElement?.nodeName is 'IFRAME' and d.activeElement.src?[...38] is 'https://www.google.com/recaptcha/api2/' + focus = d.activeElement?.nodeName is 'IFRAME' and /https?:\/\/www\.google\.com\/recaptcha\//.test(d.activeElement.src) if @needed() if focus if QR.cooldown.auto or Conf['Post on Captcha Completion']