diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-02-15 11:29:58 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-02-15 11:30:06 +0100 |
commit | 526e88695f6c8a2b3dea4b9befeb2a85ba00b66b (patch) | |
tree | db2a0422d322ad45842cd12e1e107f1f08718f99 /extension/lib/wallet | |
parent | c34a6612ec079a78e67325dac8d9a18775abe022 (diff) |
suggest mint based on currency (stub)
Diffstat (limited to 'extension/lib/wallet')
-rw-r--r-- | extension/lib/wallet/wxmessaging.js | 1 | ||||
-rw-r--r-- | extension/lib/wallet/wxmessaging.ts | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/extension/lib/wallet/wxmessaging.js b/extension/lib/wallet/wxmessaging.js index f5819b197..8c74dab4e 100644 --- a/extension/lib/wallet/wxmessaging.js +++ b/extension/lib/wallet/wxmessaging.js @@ -144,6 +144,7 @@ System.register(["./wallet", "./db", "./http"], function(exports_1, context_1) { 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; }); }) 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; }); }) |