From 73af8dd6ff29865a3bea7cc54f331051e541952a Mon Sep 17 00:00:00 2001 From: Faris Mahmutovic Date: Wed, 7 Feb 2024 17:58:14 +0100 Subject: [PATCH] chore: update readme --- README.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/README.md b/README.md index b923c22..333d27a 100644 --- a/README.md +++ b/README.md @@ -46,3 +46,45 @@ const { response } = await hcaptcha.execute({ async: true }); | `reportapi` | String | No | `-` | See enterprise docs. | | `sentry` | Boolean | No | `-` | See enterprise docs. | | `custom` | Boolean | No | `-` | See enterprise docs. | + +### ES5 Support + +To use in ES5 environments, add the following: + +1. **polyfills.js**: This script provides polyfills for features not supported in older browsers. + +```html + +``` + +2. **index.es5.js**: This is the main script file for the `@hcaptcha/loader` package, compiled for ES5 environments. + +```html + +``` + + +Once you have included the necessary dependencies, you can use the `@hcaptcha/loader` package in your JavaScript code. + +```html + + + + + + +
+ + + +``` + +#### Important Notes + +- Ensure that the paths to the script files (`polyfills.js` and `index.es5.js`) are correct relative to your HTML file.