Update inBubble test for captcha changes.

This commit is contained in:
ccd0 2015-10-23 15:58:46 -07:00
parent c4bf1c99f0
commit f8b313ecb4

View File

@ -153,7 +153,7 @@ QR =
$.off d, 'scroll', QR.scrollLock
inBubble: ->
bubbles = $$ '.goog-bubble-content > iframe'
bubbles = $$ 'iframe[src^="https://www.google.com/recaptcha/api2/frame"]'
d.activeElement in bubbles or bubbles.some((el) -> el.getBoundingClientRect().bottom > 0)
inCaptcha: ->