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