diff options
author | Florian Dold <florian@dold.me> | 2023-06-30 23:01:11 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-06-30 23:01:11 +0200 |
commit | 86e9799ffdfa5aab5a25cbce1d18881e0a3dfc3e (patch) | |
tree | 5067c6977f7478db1a8e1272440093f9bd47f611 /packages | |
parent | bac2ac01b892f59bb7063582f6899b9ae8cec33e (diff) | |
download | wallet-core-86e9799ffdfa5aab5a25cbce1d18881e0a3dfc3e.tar.xz |
embedded: revert accidental/unfinished qjs change
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-embedded/src/wallet-qjs.ts | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/packages/taler-wallet-embedded/src/wallet-qjs.ts b/packages/taler-wallet-embedded/src/wallet-qjs.ts index 7e2ee1b2d..e6456c930 100644 --- a/packages/taler-wallet-embedded/src/wallet-qjs.ts +++ b/packages/taler-wallet-embedded/src/wallet-qjs.ts @@ -188,25 +188,21 @@ export function installNativeWalletListener(): void { const id = msg.id; logger.info(`native listener: got request for ${operation} (${id})`); - if (operation === "anastasisReduce") { - sendNativeMessage(respMsg); - } else { - let respMsg: CoreApiResponse; - try { - respMsg = await handler.handleMessage(operation, id, msg.args ?? {}); - } catch (e) { - respMsg = { - type: "error", - id, - operation, - error: getErrorDetailFromException(e), - }; - } - logger.info( - `native listener: sending back ${respMsg.type} message for operation ${operation} (${id})`, - ); - sendNativeMessage(respMsg); + let respMsg: CoreApiResponse; + try { + respMsg = await handler.handleMessage(operation, id, msg.args ?? {}); + } catch (e) { + respMsg = { + type: "error", + id, + operation, + error: getErrorDetailFromException(e), + }; } + logger.info( + `native listener: sending back ${respMsg.type} message for operation ${operation} (${id})`, + ); + sendNativeMessage(respMsg); }; qjsOs.setMessageFromHostHandler((m) => onMessage(m)); |