Skip to content

Commit

Permalink
Also check descendants of inserted nodes.
Browse files Browse the repository at this point in the history
Possibly fixes the copy+paste captcha?
  • Loading branch information
ccd0 committed Dec 11, 2014
1 parent b28f097 commit 74540e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Posting/QR.captcha.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ QR.captcha =
afterSetup: (mutations) ->
for mutation in mutations
for node in mutation.addedNodes
@setupIFrame node if node.nodeName is 'IFRAME'
@setupTextArea node if node.nodeName is 'TEXTAREA'
@setupIFrame iframe if iframe = $.x './descendant-or-self::iframe', node
@setupTextArea textarea if textarea = $.x './descendant-or-self::textarea', node
return

setupIFrame: (iframe) ->
Expand Down

0 comments on commit 74540e4

Please sign in to comment.