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
docs: added getResponse instance method #188
Conversation
this.captcha.getResponse().then(response => { | ||
alert(response); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sarneeh
The google getResponse
API will return just an ""
empty string until the challenge is resolved.
I'm just curious if it should be treated as a Promise rejection 🤔
Current implementation would only reject the Promise if the underlying Google API would throw
, which I consider valid behaviour too.
@sarneeh Thanks for your quick answer. |
Hi @sarneeh I saw you merged #187, so I pulled down your latest |
1875538
to
51e75f5
Compare
@sarneeh |
fixes #185
Changes:
addalready donegetResponse
instance method to readmeadds
getResponse
example which justalert
s it