1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-03 14:44:27 +01:00

Update network.js

This commit is contained in:
kumavis 2017-10-23 12:10:49 -07:00 committed by GitHub
parent 61eea51310
commit b17a799de6

View File

@ -53,7 +53,7 @@ module.exports = class NetworkController extends EventEmitter {
lookupNetwork () { lookupNetwork () {
// Prevent firing when provider is not defined. // Prevent firing when provider is not defined.
if (!this.ethQuery || !this.ethQuery.sendAsync) { if (!this.ethQuery || !this.ethQuery.sendAsync) {
return return console.warn('NetworkController - lookupNetwork aborted due to missing ethQuery')
} }
this.ethQuery.sendAsync({ method: 'net_version' }, (err, network) => { this.ethQuery.sendAsync({ method: 'net_version' }, (err, network) => {
if (err) return this.setNetworkState('loading') if (err) return this.setNetworkState('loading')