diff --git a/modules/preloader/injected/EthereumProvider.js b/modules/preloader/injected/EthereumProvider.js index c359a8ac0..1851ddeec 100644 --- a/modules/preloader/injected/EthereumProvider.js +++ b/modules/preloader/injected/EthereumProvider.js @@ -49,11 +49,7 @@ var result = data.message; // get the id which matches the returned id - if ( - typeof result === 'object' && - result.forEach && - isFinite(result.length) - ) { + if (Array.isArray(result)) { result.forEach(function(load) { if (_this.responseCallbacks[load.id]) id = load.id; });