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

update

parent 9fb34332
...@@ -67,6 +67,7 @@ function callAndroidApi(name: string, ...args: any[]): void { ...@@ -67,6 +67,7 @@ function callAndroidApi(name: string, ...args: any[]): void {
const result = window.liveapp[name](...invokeArgs) const result = window.liveapp[name](...invokeArgs)
if (typeof ack === 'function') { if (typeof ack === 'function') {
console.log('callback', name, result)
ack(result) ack(result)
} }
} }
...@@ -93,6 +94,7 @@ function callAndroidAsyncApi(name: string, ...args: any[]): void { ...@@ -93,6 +94,7 @@ function callAndroidAsyncApi(name: string, ...args: any[]): void {
// @ts-ignore // @ts-ignore
window[callbackName] = (...args: any[]) => { window[callbackName] = (...args: any[]) => {
console.log('callback', name, ...args)
// @ts-ignore // @ts-ignore
delete window[callbackName] delete window[callbackName]
ack(...args) 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