on master help sign in
pass token to parent
commitefbc46ff5a75e0856f20e3b77556878114898565 authoriko <ilyakooo0@gmail.com> dateMon 1 Aug 2022, 16:20 (4 years ago) parent9c166f8
1 file changed+8−1
hcaptcha.html+8−1
hcaptcha.html+8−1
@@ -10,7 +10,14 @@
1010</head>
1111
1212<body>
13− <div class="h-captcha" data-sitekey="bc38c8a2-5311-4e8c-9dfc-49e99f6df417"></div>
13+
14+ <script>
15+ function processSuccess(token) {
16+ console.log(token);
17+ window.parent.postMessage(token, "*");
18+ }
19+ </script>
20+ <div class="h-captcha" data-sitekey="bc38c8a2-5311-4e8c-9dfc-49e99f6df417" data-callback="processSuccess"></div>
1421</body>
1522
1623</html>