Skip to content

Commit

Permalink
stringify response
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Nov 27, 2024
1 parent 85c1894 commit 1a51f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/index_m.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
const responseElement = document.getElementById('captchaResponse');

if (hCaptchaResponse) {
document.getElementById('captcha').value = hCaptchaResponse;
document.getElementById('captcha').value = JSON.stringify(hCaptchaResponse);
//trigger change event
var event = new Event('change');
document.getElementById('captcha').dispatchEvent(event);
Expand Down

0 comments on commit 1a51f8a

Please sign in to comment.