Consistent names for event types.
This commit is contained in:
parent
55f9569b90
commit
a69cccca47
@ -25,15 +25,15 @@ chrome.runtime.onMessage.addListener(
|
||||
: " from the extension"));
|
||||
switch (req.type)
|
||||
{
|
||||
case "WALLET_GET":
|
||||
case "db-get-wallet":
|
||||
DB.wallet_get (onresponse);
|
||||
break;
|
||||
|
||||
case "TRANSACTION_LIST":
|
||||
case "db-list-transactions":
|
||||
DB.transaction_list (onresponse);
|
||||
break;
|
||||
|
||||
case "RESERVE_LIST":
|
||||
case "db-list-reserves":
|
||||
DB.reserve_list (onresponse);
|
||||
break;
|
||||
}
|
||||
|
@ -18,13 +18,6 @@ document.addEventListener("DOMContentLoaded", function(e) {
|
||||
document.body.dispatchEvent(evt);
|
||||
console.log("bank handshake done");
|
||||
});
|
||||
document.body.addEventListener('taler-create-reserve', function(e) {
|
||||
console.log("reserve creation " + JSON.stringify(e.detail));
|
||||
chrome.runtime.sendMessage({action:'new-reserve-request', detail:e.detail}, function(resp) {
|
||||
console.log("got response");
|
||||
document.location.href = resp.url;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
console.log("Taler wallet: content page loaded");
|
||||
|
Loading…
Reference in New Issue
Block a user