Change signaling.
The same signaling is now used for merchant and bank.
This commit is contained in:
parent
ffe6dee6aa
commit
f5626ef322
@ -17,20 +17,10 @@
|
|||||||
// query the availability of Taler.
|
// query the availability of Taler.
|
||||||
/// <reference path="../lib/decl/chrome/chrome.d.ts" />
|
/// <reference path="../lib/decl/chrome/chrome.d.ts" />
|
||||||
"use strict";
|
"use strict";
|
||||||
document.addEventListener("taler-checkout-probe", function (e) {
|
document.addEventListener("taler-probe", function (e) {
|
||||||
var evt = new Event("taler-wallet-present");
|
var evt = new Event("taler-wallet-present");
|
||||||
document.dispatchEvent(evt);
|
document.dispatchEvent(evt);
|
||||||
console.log("merchant handshake done");
|
console.log("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");
|
|
||||||
});
|
});
|
||||||
document.addEventListener("taler-create-reserve", function (e) {
|
document.addEventListener("taler-create-reserve", function (e) {
|
||||||
var $ = function (x) { return document.getElementById(x); };
|
var $ = function (x) { return document.getElementById(x); };
|
||||||
|
@ -21,22 +21,10 @@
|
|||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
document.addEventListener("taler-checkout-probe", function(e) {
|
document.addEventListener("taler-probe", function(e) {
|
||||||
let evt = new Event("taler-wallet-present");
|
let evt = new Event("taler-wallet-present");
|
||||||
document.dispatchEvent(evt);
|
document.dispatchEvent(evt);
|
||||||
console.log("merchant handshake done");
|
console.log("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");
|
|
||||||
});
|
});
|
||||||
|
|
||||||
document.addEventListener("taler-create-reserve", function(e: CustomEvent) {
|
document.addEventListener("taler-create-reserve", function(e: CustomEvent) {
|
||||||
|
Loading…
Reference in New Issue
Block a user