mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-02 22:34:44 +00:00
Added a preliminary check before polling
This commit is contained in:
parent
e68e3ccc2f
commit
eb9f651465
@ -91,6 +91,9 @@ window.addEventListener('load', () => {
|
||||
});
|
||||
});
|
||||
|
||||
setInterval(handleMetaMaskPolling.bind(null, store), METAMASK_POLLING_INTERVAL);
|
||||
/** @desc When MetaMask is loaded as an extension, watch for network changes. */
|
||||
if ((window as any).web3) {
|
||||
setInterval(handleMetaMaskPolling.bind(null, store), METAMASK_POLLING_INTERVAL);
|
||||
}
|
||||
|
||||
export default store;
|
||||
|
Loading…
x
Reference in New Issue
Block a user