-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade SDK version in documentation
- Loading branch information
1 parent
9779b5f
commit d50712f
Showing
4 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,14 +16,14 @@ To create widgets from Javascript code, [see **Option B** below](#option-b-progr | |
|
||
Add the following to your website's HTML: | ||
```html | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].11/site.min.js" async defer></script> | ||
<script nomodule src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].11/site.compat.min.js" async defer></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].16/site.min.js" async defer></script> | ||
<script nomodule src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].16/site.compat.min.js" async defer></script> | ||
``` | ||
|
||
::::tip | ||
#### Using the scripts without a CDN | ||
|
||
You can [download the latest release files](https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].11/) and serve them from your own server. | ||
You can [download the latest release files](https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].16/) and serve them from your own server. | ||
Remember to update these scripts regularly. | ||
:::: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,9 +33,9 @@ Instead you would replace the hCaptcha plugin and install a plugin that supports | |
``` | ||
with the hCAPTCHA-compatible Friendly Captcha scripts. | ||
```html | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].11/contrib/hcaptcha-site.min.js" | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].16/contrib/hcaptcha-site.min.js" | ||
async defer></script> | ||
<script nomodule src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].11/contrib/hcaptcha-site.compat.min.js" | ||
<script nomodule src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].16/contrib/hcaptcha-site.compat.min.js" | ||
async defer></script> | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,9 +32,9 @@ Instead you would replace the reCAPTCHA plugin and install a plugin that support | |
``` | ||
with the reCAPTCHA-compatible Friendly Captcha scripts. | ||
```html | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].11/contrib/recaptcha-site.min.js" | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].16/contrib/recaptcha-site.min.js" | ||
async defer></script> | ||
<script nomodule src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].11/contrib/recaptcha-site.compat.min.js" | ||
<script nomodule src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].16/contrib/recaptcha-site.compat.min.js" | ||
async defer></script> | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,9 @@ Replace the `friendly-challenge` scripts | |
``` | ||
with the new `@friendlycaptcha/sdk` scripts | ||
```html | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].11/site.min.js" | ||
<script type="module" src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].16/site.min.js" | ||
async defer></script> | ||
<script nomodule src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].11/site.compat.min.js" | ||
<script nomodule src="https://cdn.jsdelivr.net/npm/@friendlycaptcha/[email protected].16/site.compat.min.js" | ||
async defer></script> | ||
``` | ||
## 2. 🇪🇺 Update custom API endpoints | ||
|