Fit fallback captcha sometimes offered even when JS is enabled.
This commit is contained in:
parent
3b3e8369e5
commit
8a41b5634c
@ -11,7 +11,10 @@ Report =
|
|||||||
$.addStyle Report.css
|
$.addStyle Report.css
|
||||||
Report.archive() if Conf['Archive Report']
|
Report.archive() if Conf['Archive Report']
|
||||||
if Conf['Use Recaptcha v2 in Reports'] and $.hasClass doc, 'js-enabled'
|
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
|
childList: true
|
||||||
attributes: true
|
attributes: true
|
||||||
subtree: true
|
subtree: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user