From a83e60e6057e7baf64e7596e8a9666a752b55b7f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 6 Sep 2016 15:03:34 +0200 Subject: rename event, move logic into wallet --- content_scripts/notify.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'content_scripts/notify.ts') 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 -- cgit v1.2.3