Minor fixes

This commit is contained in:
Ivan Nikolskiy 2025-05-28 01:47:19 +02:00
parent 0e40f0691e
commit fcfc724db5

View File

@ -183,9 +183,9 @@ The `@ratelimit` decorator enforces strict rate limits while `@hoptcha_protected
You can override the default iframe and style using the optional onCaptcha parameter in the hoptchaPost() JavaScript function. This is useful if you want to match your apps branding or use modals.
```javascript
hoptchaPost('/endpoint', payload, onSuccess, onError, function renderCustom(url, key) {
hoptchaPost('/endpoint', payload, onSuccess, onError, function renderCustom(url) {
// Replace container with your custom implementation
$('#myCustomCaptchaArea').html(`<iframe src="${url}?client_key=${key}"></iframe>`);
$('#myCustomCaptchaArea').html(`<iframe src="${url}"></iframe>`);
});
```