diff options
Diffstat (limited to 'extension/lib/wallet/wxmessaging.ts')
-rw-r--r-- | extension/lib/wallet/wxmessaging.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extension/lib/wallet/wxmessaging.ts b/extension/lib/wallet/wxmessaging.ts index 045145716..b3bc5005d 100644 --- a/extension/lib/wallet/wxmessaging.ts +++ b/extension/lib/wallet/wxmessaging.ts @@ -29,6 +29,7 @@ import {BrowserHttpLib} from "./http"; * @author Florian Dold */ + function makeHandlers(wallet: Wallet) { return { ["balances"]: function(db, detail, sendResponse) { @@ -162,6 +163,7 @@ export function wxMain() { return handlers[req.type](db, req.detail, onresponse); } console.error(`Request type ${JSON.stringify(req)} unknown, req ${req.type}`); + onresponse({error: "request unknown"}); return false; }); }) |