Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions dist/chain/src/ChainStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,15 @@ var ChainStore = function () {
this.subError = null;
this.clearCache();
this.head_block_time_string = null;
this.init().then(function () {
try {
this.init().then(function () {
console.log('resetCache init success');
}).catch(function (err) {
}).catch(function (err) {
console.log('resetCache init error:', err);
});
});
} catch{
console.log('resetCache init error:');
}
};

ChainStore.prototype.setDispatchFrequency = function setDispatchFrequency(freq) {
Expand Down Expand Up @@ -242,9 +246,14 @@ var ChainStore = function () {
});
};

return _ws.Apis.instance().init_promise.then(function () {
return new Promise(_init);
});
try {
return _ws.Apis.instance().init_promise.then(function ()
{
return new Promise(_init);
})
} catch{
console.log('error in Init promise');
}
};

ChainStore.prototype._subTo = function _subTo(type, id) {
Expand Down