Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix race condition in which the image would load before the onload callb... #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Shananra
Copy link

There was a race condition where the callback was set after the src was set on the image. When loading Camera from the localhost the image may sometimes load faster than the code can get to the callback. By moving the code down where the src is set this issue is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant