Update captcha-enabled detection.
This commit is contained in:
parent
4220328929
commit
b2ab1d2f7d
@ -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}) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user