aboutsummaryrefslogtreecommitdiff
path: root/extension/lib/wallet/wxmessaging.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-01-26 17:21:17 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-01-26 17:24:42 +0100
commitd2f1cb3234cbeca88903efcfd0d7d406fbece53c (patch)
tree6c1ab8ea8d3f1a0634aa21c83b6d39c7eac519da /extension/lib/wallet/wxmessaging.ts
parent5f996fedbc7542e1ba757a5a5856e43931ad7939 (diff)
fix #4153 and #0004154
Diffstat (limited to 'extension/lib/wallet/wxmessaging.ts')
-rw-r--r--extension/lib/wallet/wxmessaging.ts21
1 files changed, 12 insertions, 9 deletions
diff --git a/extension/lib/wallet/wxmessaging.ts b/extension/lib/wallet/wxmessaging.ts
index eb9f165db..0ec07dfe1 100644
--- a/extension/lib/wallet/wxmessaging.ts
+++ b/extension/lib/wallet/wxmessaging.ts
@@ -98,8 +98,8 @@ function makeHandlers(wallet) {
.then((r) => {
sendResponse({
success: true,
- payUrl: r.payUrl,
- payReq: r.payReq
+ payReq: r.payReq,
+ contract: r.contract,
});
})
.catch((e) => {
@@ -113,14 +113,17 @@ function makeHandlers(wallet) {
["get-history"]: function(db, detail, sendResponse) {
// TODO: limit history length
wallet.getHistory()
- .then((h) => {
- sendResponse(h);
- })
- .catch((e) => {
- console.error("exception during 'get-history'");
- console.error(e.stack);
- });
+ .then((h) => {
+ sendResponse(h);
+ })
+ .catch((e) => {
+ console.error("exception during 'get-history'");
+ console.error(e.stack);
+ });
return true;
+ },
+ ["error-fatal"]: function(db, detail, sendResponse) {
+ console.log("fatal error from page", detail.url);
}
};
}