Also check descendants of inserted nodes.
Possibly fixes the copy+paste captcha?
This commit is contained in:
parent
b28f09723c
commit
74540e4b71
@ -85,8 +85,8 @@ QR.captcha =
|
|||||||
afterSetup: (mutations) ->
|
afterSetup: (mutations) ->
|
||||||
for mutation in mutations
|
for mutation in mutations
|
||||||
for node in mutation.addedNodes
|
for node in mutation.addedNodes
|
||||||
@setupIFrame node if node.nodeName is 'IFRAME'
|
@setupIFrame iframe if iframe = $.x './descendant-or-self::iframe', node
|
||||||
@setupTextArea node if node.nodeName is 'TEXTAREA'
|
@setupTextArea textarea if textarea = $.x './descendant-or-self::textarea', node
|
||||||
return
|
return
|
||||||
|
|
||||||
setupIFrame: (iframe) ->
|
setupIFrame: (iframe) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user