Commit 546414c8 authored by 郑磊's avatar 郑磊

update

parent 9fb34332
......@@ -67,6 +67,7 @@ function callAndroidApi(name: string, ...args: any[]): void {
const result = window.liveapp[name](...invokeArgs)
if (typeof ack === 'function') {
console.log('callback', name, result)
ack(result)
}
}
......@@ -93,6 +94,7 @@ function callAndroidAsyncApi(name: string, ...args: any[]): void {
// @ts-ignore
window[callbackName] = (...args: any[]) => {
console.log('callback', name, ...args)
// @ts-ignore
delete window[callbackName]
ack(...args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment