issues
search
mozilla
/
fxa
Monorepo for Mozilla Accounts (formerly Firefox Accounts)
https://mozilla.github.io/ecosystem-platform/
Mozilla Public License 2.0
589
stars
212
forks
source link
fix(sync): Use requestAnimationFrame to ensure event handler is attached before event
#17217
Closed
LZoog
closed
1 month ago
LZoog
commented
1 month ago
Because:
Android responds immediately to the can_link_account message and we don't appear to always have the event listener attached
This fix:
Adds requestAnimationFrame, as we have needed to use this a couple of times before for testing when the response back was immediate
fixes FXA-10057
Because:
This fix:
fixes FXA-10057