From f5626ef322709e11899be4ff136ff2a2cf7f37ed Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 12 Jan 2016 18:10:27 +0100 Subject: [PATCH] Change signaling. The same signaling is now used for merchant and bank. --- extension/content_scripts/notify.js | 14 ++------------ extension/content_scripts/notify.ts | 16 ++-------------- 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/extension/content_scripts/notify.js b/extension/content_scripts/notify.js index 5c6c02535..d08a377b5 100644 --- a/extension/content_scripts/notify.js +++ b/extension/content_scripts/notify.js @@ -17,20 +17,10 @@ // query the availability of Taler. /// "use strict"; -document.addEventListener("taler-checkout-probe", function (e) { +document.addEventListener("taler-probe", function (e) { var evt = new Event("taler-wallet-present"); document.dispatchEvent(evt); - console.log("merchant handshake done"); -}); -document.addEventListener("taler-wire-probe", function (e) { - var evt = new Event("taler-wallet-present"); - document.dispatchEvent(evt); - console.log("bank handshake done"); -}); -document.addEventListener("taler-checkout-probe", function (e) { - var evt = new Event("taler-wallet-present"); - document.dispatchEvent(evt); - console.log("merchant handshake done"); + console.log("handshake done"); }); document.addEventListener("taler-create-reserve", function (e) { var $ = function (x) { return document.getElementById(x); }; diff --git a/extension/content_scripts/notify.ts b/extension/content_scripts/notify.ts index 72d5a789d..88f84f01b 100644 --- a/extension/content_scripts/notify.ts +++ b/extension/content_scripts/notify.ts @@ -21,22 +21,10 @@ "use strict"; -document.addEventListener("taler-checkout-probe", function(e) { +document.addEventListener("taler-probe", function(e) { let evt = new Event("taler-wallet-present"); document.dispatchEvent(evt); - console.log("merchant handshake done"); -}); - -document.addEventListener("taler-wire-probe", function(e) { - let evt = new Event("taler-wallet-present"); - document.dispatchEvent(evt); - console.log("bank handshake done"); -}); - -document.addEventListener("taler-checkout-probe", function(e) { - let evt = new Event("taler-wallet-present"); - document.dispatchEvent(evt); - console.log("merchant handshake done"); + console.log("handshake done"); }); document.addEventListener("taler-create-reserve", function(e: CustomEvent) {