Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
VertigoRay committed Sep 12, 2017
1 parent 6331b8c commit 3040a6d
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions lib/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ b_main.draw();
term.on('resize', (width, height) => {
// console.log('TERM RESIZED:', width, height);
load_layout(delta=false);
})
});



Expand All @@ -859,14 +859,19 @@ module.exports = function (input, done) {

header();

switch input.action {
case 'account':
account(input.data);
break;
case 'coin':
coin(input.product_id, input.data);
case 'footer':
footer(input.data);
break;

log.debug('module.exports: account:', input.account);
if (input.account !== undefined)
{
account(input.account);
}
}

product_ids.forEach((product_id) => {
log.debug('module.exports: coin:', input.coins[product_id]);
coin([product_id], input.coins[product_id]);
});


log.debug('module.exports: bytesReceived:', input.bytesReceived);
footer(input.bytesReceived);
};

0 comments on commit 3040a6d

Please sign in to comment.