Adding passing details needed to the wallet through the
'wire funds' event (NOT tested)
This commit is contained in:
parent
6d03017eba
commit
e5988bf353
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user