Skip to content

Commit

Permalink
apply EthBlocks.init fix
Browse files Browse the repository at this point in the history
  • Loading branch information
skubakdj committed Aug 16, 2017
1 parent f02e4fe commit f47ec98
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions interface/client/appStart.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ mistInit = function () {
console.info('Initialise Mist Interface');

EthBlocks.init();
const ethBlocksInterval = setInterval(() => {
if (_.isEmpty(EthBlocks.latest)) {
EthBlocks.init();
} else {
clearInterval(ethBlocksInterval);
}
}, 500);

Tabs.onceSynced.then(function () {
if (location.search.indexOf('reset-tabs') >= 0) {
Expand Down

0 comments on commit f47ec98

Please sign in to comment.