too much nesting
This commit is contained in:
parent
899a73ca78
commit
78718d3534
@ -258,17 +258,10 @@ export function installAndroidWalletListener(): void {
|
|||||||
console.log(`android listener: got request for ${operation} (${id})`);
|
console.log(`android listener: got request for ${operation} (${id})`);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const result = await handler.handleMessage(operation, id, msg.args);
|
const respMsg = await handler.handleMessage(operation, id, msg.args);
|
||||||
console.log(
|
console.log(
|
||||||
`android listener: sending success response for ${operation} (${id})`,
|
`android listener: sending success response for ${operation} (${id})`,
|
||||||
);
|
);
|
||||||
const respMsg = {
|
|
||||||
type: "response",
|
|
||||||
id,
|
|
||||||
operation,
|
|
||||||
isError: false,
|
|
||||||
result,
|
|
||||||
};
|
|
||||||
sendMessage(JSON.stringify(respMsg));
|
sendMessage(JSON.stringify(respMsg));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const respMsg = {
|
const respMsg = {
|
||||||
|
Loading…
Reference in New Issue
Block a user