8000 Fixes loading Braintree libraries by miscer · Pull Request #549 · recurly/recurly-js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixes loading Braintree libraries #549

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

Merged
merged 1 commit into from
Sep 9, 2019

Conversation

miscer
Copy link
Contributor
@miscer miscer commented Sep 9, 2019

When loading the Braintree libraries the code checks if window.braintree.client and window.braintree.threeDSecure exist, but not window.braintree. The first time the loadBraintreeLibraries method is called it throws an error: TypeError: "window.braintree is undefined". This PR adds the additional check for window.braintree to avoid the error 🙂

@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 92.526% when pulling ae291be on Hundred5:fix-loading-braintree into 9977451 on recurly:master.

@chrissrogers
Copy link
Member

Great catch! Merging this now to incorporate into pending version v4.10.2

@chrissrogers chrissrogers merged commit 75aa0e9 into recurly:master Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0