From d08c642ff5c6125ed10f62b1cf61c7243b2f4cd8 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 20 Feb 2015 17:32:06 -0800 Subject: [PATCH] Don't reload expired captchas in background tabs. #330 --- src/Posting/Captcha.noscript.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Posting/Captcha.noscript.coffee b/src/Posting/Captcha.noscript.coffee index 622ec82d9..ceebc68f5 100644 --- a/src/Posting/Captcha.noscript.coffee +++ b/src/Posting/Captcha.noscript.coffee @@ -217,7 +217,7 @@ Captcha.noscript = expire: -> return unless @nodes.iframe - if @needed() or d.activeElement is @nodes.input + if not d.hidden and (@needed() or d.activeElement is @nodes.input) @reload() else @destroy()