diff options
-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) { |