Set new callbacks
This commit is contained in:
parent
d68687f0af
commit
572a23fc11
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user