Set new callbacks

This commit is contained in:
regalijan 2023-10-19 16:51:13 -04:00
parent d68687f0af
commit 572a23fc11
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -11,13 +11,13 @@ export async function onRequestGet(context: RequestContext) {
<script> <script>
function handleError(error) { function handleError(error) {
console.error(error); console.error(error);
window.flutter_inappwebview.callHandler("onToken", null); onToken.postMessage(null);
return true; return true;
} }
function returnToken(token) { function returnToken(token) {
window.flutter_inappwebview.callHandler("onToken", token); onToken.postMessage(token);
} }
</script> </script>
</body> </body>