Consistent names for event types.

This commit is contained in:
Florian Dold 2015-12-05 16:32:31 +01:00
parent 55f9569b90
commit a69cccca47
2 changed files with 3 additions and 10 deletions

View File

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

View File

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