Change signaling.

The same signaling is now used for merchant and bank.
This commit is contained in:
Florian Dold 2016-01-12 18:10:27 +01:00
parent ffe6dee6aa
commit f5626ef322
2 changed files with 4 additions and 26 deletions

View File

@ -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); };

View File

@ -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) {