Update captcha-enabled detection.

This commit is contained in:
ccd0 2014-12-08 14:52:59 -08:00
parent 4220328929
commit b2ab1d2f7d

View File

@ -1,7 +1,7 @@
QR.captcha =
init: ->
return if d.cookie.indexOf('pass_enabled=1') >= 0
return unless @isEnabled = !!$.id 'captchaContainer'
return unless @isEnabled = !!$.id 'g-recaptcha'
@captchas = []
$.get 'captchas', [], ({captchas}) ->