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

Retry ethereum.enable after 1 sec if bridge not ready #963

Merged
merged 4 commits into from
Jul 30, 2019

Conversation

brunobar79
Copy link
Contributor

@brunobar79 brunobar79 commented Jul 30, 2019

For light pages that were calling ethereum.enable right after the onload event was triggered, they might get an error if the react native bridge is not ready.

This PR simply retries that request.

The reproduction site that was failing is now working: https://brunobar79.github.io/dapp-issues-repro/

@brunobar79 brunobar79 added android Android specific issue needs-qa Any New Features that needs a full manual QA prior to being added to a release. and removed android Android specific issue labels Jul 30, 2019
Copy link
Contributor

@estebanmino estebanmino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! (snapshots are not updated yet)

@ibrahimtaveras00
Copy link
Contributor

QA Passed 👍

@brunobar79 brunobar79 merged commit 6c72d46 into develop Jul 30, 2019
@estebanmino estebanmino deleted the fix-late-injection-issues branch February 4, 2020 15:57
rickycodes pushed a commit that referenced this pull request Jan 31, 2022
* retry ethereum.enable after 1 sec

* fix approval screen info

* update snapshot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-qa Any New Features that needs a full manual QA prior to being added to a release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants