From d8ba3e1708c9ac41f546c56be8e1a813177f6fa5 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 20 Jun 2015 19:45:03 -0700 Subject: [PATCH] Don't run noscript captcha stuff on error pages. --- src/Posting/Captcha.fixes.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Posting/Captcha.fixes.coffee b/src/Posting/Captcha.fixes.coffee index cc16f6811..1b6a76263 100644 --- a/src/Posting/Captcha.fixes.coffee +++ b/src/Posting/Captcha.fixes.coffee @@ -50,6 +50,8 @@ Captcha.fixes = initNoscript: -> @noscript = true @images = $$ '.fbc-payload-imageselect > input' + return unless @images.length + $.addStyle @cssNoscript @addLabels() $.on d, 'keydown', @keybinds.bind(@)