Fit fallback captcha sometimes offered even when JS is enabled.

This commit is contained in:
ccd0 2015-11-05 22:09:00 -08:00
parent 3b3e8369e5
commit 8a41b5634c

View File

@ -11,7 +11,10 @@ Report =
$.addStyle Report.css
Report.archive() if Conf['Archive Report']
if Conf['Use Recaptcha v2 in Reports'] and $.hasClass doc, 'js-enabled'
new MutationObserver(-> Report.fit 'iframe[src^="https://www.google.com/recaptcha/api2/frame"]').observe d.body,
new MutationObserver(->
Report.fit 'iframe[src^="https://www.google.com/recaptcha/api2/frame"]'
Report.fit 'body'
).observe d.body,
childList: true
attributes: true
subtree: true