Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Actually log failures in console
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent a9dec97 commit 4744975
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion functions/api/webview-captcha.ts
Expand Up @@ -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) {
Expand Down

0 comments on commit 4744975

Please sign in to comment.