diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-01-12 18:10:27 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-01-12 18:10:27 +0100 |
commit | f5626ef322709e11899be4ff136ff2a2cf7f37ed (patch) | |
tree | fcef69eef4568a407bad9690a83c539041c50776 | |
parent | ffe6dee6aa50c864cc9a36e816eb95f2f23719b1 (diff) |
Change signaling.
The same signaling is now used for merchant and bank.
-rw-r--r-- | extension/content_scripts/notify.js | 14 | ||||
-rw-r--r-- | 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. /// <reference path="../lib/decl/chrome/chrome.d.ts" /> "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) { |