From 54ef84b37268f0c13032cac9366bef5c57147ab1 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 21 Jun 2015 08:55:36 -0700 Subject: [PATCH] Don't setup captcha before captchas array exists. --- src/Posting/Captcha.v1.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Posting/Captcha.v1.coffee b/src/Posting/Captcha.v1.coffee index b6a89ebf3..33f53de3d 100644 --- a/src/Posting/Captcha.v1.coffee +++ b/src/Posting/Captcha.v1.coffee @@ -11,8 +11,6 @@ Captcha.v1 = hidden: true $.add d.body, captchaContainer - @setup() if Conf['Auto-load captcha'] - imgContainer = $.el 'div', className: 'captcha-img' title: 'Reload reCAPTCHA' @@ -43,7 +41,7 @@ Captcha.v1 = new MutationObserver(@afterSetup).observe $.id('captchaContainer'), childList: true @beforeSetup() - @afterSetup() # reCAPTCHA might have loaded before the QR. + @setup() if Conf['Auto-load captcha'] cb: focus: -> QR.captcha.setup false, true