Actually log failures in console
This commit is contained in:
parent
a9dec97e7f
commit
474497551f
@ -9,8 +9,11 @@ export async function onRequestGet(context: RequestContext) {
|
||||
<body>
|
||||
<div class="cf-turnstile" data-callback="returnToken" data-error-callback="handleError" data-sitekey="${context.env.TURNSTILE_SITEKEY}"></div>
|
||||
<script>
|
||||
function handleError(_error) {
|
||||
function handleError(error) {
|
||||
console.error(error);
|
||||
window.flutter_inappwebview.callHandler("onToken", null);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function returnToken(token) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user