Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Commit

Permalink
Fixed typos. Clearer texts.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGhostHunter committed May 27, 2020
1 parent a830a28 commit 7dc977c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ Form submission is disabled by default until the token from reCAPTCHA is retriev
</form>
```

#### Token resolved helper.
#### Token resolved helper

When the reCAPTCHA token is being retrieved for the form, the form will have set the property `recaptcha_unresolved` to `true`. You can use this property for your other script to conditionally allow submission or whatever.
When the reCAPTCHA token is being retrieved for the form, the form will have the property `recaptcha_unresolved` set to `true`. You can use this property for your other scripts to conditionally allow submission or whatever.

```javascript
if (form.recaptcha_unresolved) {
alert('Wait until reCAPTCHA sends the token!');
} else {
form.submit();
}
```

Expand Down

0 comments on commit 7dc977c

Please sign in to comment.