Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
EthTools.ticker.start() with configurable currencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hackmod committed May 1, 2018
1 parent a48ad2f commit 9d48650
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions app/client/lib/ethereum/walletConnector.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,16 @@ connectToNode = function() {

EthAccounts.init();
EthBlocks.init();
EthTools.ticker.start({
extraParams: typeof mist !== 'undefined' ? 'Mist-' + mist.version : '',
currencies: ['BTC', 'USD', 'EUR', 'BRL', 'GBP']
});

var options = {extraParams: (typeof mist !== 'undefined') ? 'Mist-'+ mist.version : ''};
if (!walletConfig.noUsePrice) {
var currencies = ['BTC', 'USD', 'EUR', 'BRL', 'GBP'];
if (walletConfig.supportedCurrencies) {
currencies = walletConfig.supportedCurrencies;
}
options.currencies = currencies;
}
EthTools.ticker.start(options);

if (EthAccounts.find().count() > 0) {
checkForOriginalWallet();
Expand Down

0 comments on commit 9d48650

Please sign in to comment.