Adding passing details needed to the wallet through the

'wire funds' event (NOT tested)
This commit is contained in:
Marcello Stanisci 2015-11-10 18:35:35 +01:00
parent 6d03017eba
commit e5988bf353

View File

@ -89,7 +89,12 @@
function wire_funds(){ function wire_funds(){
var trigger = new Event("taler-create-reserve"); let wallet_param = {
'currencies' : new Array("KUDOS"),
'input_name' : 'reserve-pk-id',
'base_url' : window.location.host
};
var trigger = new CustomEvent("taler-create-reserve", {detail: wallet_param});
document.body.dispatchEvent(trigger); document.body.dispatchEvent(trigger);
}; };