Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set new callbacks
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent d68687f commit 572a23f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/api/webview-captcha.ts
Expand Up @@ -11,13 +11,13 @@ export async function onRequestGet(context: RequestContext) {
<script>
function handleError(error) {
console.error(error);
window.flutter_inappwebview.callHandler("onToken", null);
onToken.postMessage(null);
return true;
}
function returnToken(token) {
window.flutter_inappwebview.callHandler("onToken", token);
onToken.postMessage(token);
}
</script>
</body>
Expand Down

0 comments on commit 572a23f

Please sign in to comment.