aboutsummaryrefslogtreecommitdiff
path: root/extension/lib/wallet/wxmessaging.ts
diff options
context:
space:
mode:
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);
}
};
}