Fix leftover occurrences of 'Use Recaptcha v2 in Reports'.
This commit is contained in:
parent
eec61b3ba7
commit
cba89a379f
@ -27,7 +27,7 @@ Report =
|
|||||||
target: '_blank'
|
target: '_blank'
|
||||||
]
|
]
|
||||||
|
|
||||||
if Conf['Use Recaptcha v2 in Reports'] and not Conf['Force Noscript Captcha'] and Main.jsEnabled
|
if not Conf['Use Recaptcha v1 in Reports'] and not Conf['Force Noscript Captcha'] and Main.jsEnabled
|
||||||
new MutationObserver(->
|
new MutationObserver(->
|
||||||
Report.fit 'iframe[src^="https://www.google.com/recaptcha/api2/frame"]'
|
Report.fit 'iframe[src^="https://www.google.com/recaptcha/api2/frame"]'
|
||||||
Report.fit 'body'
|
Report.fit 'body'
|
||||||
@ -38,7 +38,7 @@ Report =
|
|||||||
else
|
else
|
||||||
Report.fit 'body'
|
Report.fit 'body'
|
||||||
|
|
||||||
if !Conf['Use Recaptcha v2 in Reports'] and Main.jsEnabled and d.cookie.indexOf('pass_enabled=1') < 0
|
if Conf['Use Recaptcha v1 in Reports'] and Main.jsEnabled and d.cookie.indexOf('pass_enabled=1') < 0
|
||||||
$.onExists d.body, '#recaptcha_image', (image) ->
|
$.onExists d.body, '#recaptcha_image', (image) ->
|
||||||
# XXX Native reload-on-click breaks audio captcha.
|
# XXX Native reload-on-click breaks audio captcha.
|
||||||
$.global -> document.getElementById('recaptcha_image').removeEventListener 'click', window.onAltCaptchaClick, false
|
$.global -> document.getElementById('recaptcha_image').removeEventListener 'click', window.onAltCaptchaClick, false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user