aboutsummaryrefslogtreecommitdiff
path: root/content_scripts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-09-06 15:03:34 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-09-06 15:03:34 +0200
commita83e60e6057e7baf64e7596e8a9666a752b55b7f (patch)
treeb0db3faeb44616b05bca795bfeae097c6a897a32 /content_scripts
parent356a2eb01a792e4e5ef1887ef02ad2d7c1613ca3 (diff)
downloadwallet-core-a83e60e6057e7baf64e7596e8a9666a752b55b7f.tar.xz
rename event, move logic into wallet
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/notify.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/content_scripts/notify.ts b/content_scripts/notify.ts
index f5c3fb575..c6351fcf7 100644
--- a/content_scripts/notify.ts
+++ b/content_scripts/notify.ts
@@ -27,7 +27,7 @@
"use strict";
-import {createReserve, confirmContract, executeContract} from "../lib/shopApi";
+import {createReserve, confirmContract, fetchPayment} from "../lib/shopApi";
// Make sure we don't pollute the namespace too much.
namespace TalerNotify {
@@ -118,8 +118,8 @@ namespace TalerNotify {
});
});
- addHandler("taler-execute-contract", (e: CustomEvent) => {
- executeContract(e.detail.H_contract, e.detail.offering_url);
+ addHandler("taler-fetch-payment", (e: CustomEvent) => {
+ fetchPayment(e.detail.H_contract, e.detail.offering_url);
});
}
} \ No newline at end of file