Use timeout
This commit is contained in:
parent
072f95d698
commit
a7ae1fd37d
|
@ -47,8 +47,7 @@ Blockchain.connect = function(connectionList, opts, doneCb) {
|
|||
});
|
||||
window.postMessage({ type: 'ETHEREUM_PROVIDER_REQUEST' }, '*');
|
||||
|
||||
const infiniteWaitBreaker = setInterval(() => {
|
||||
clearInterval(infiniteWaitBreaker);
|
||||
setTimeout(() => {
|
||||
if (exited) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue