mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 18:41:38 +01:00
network controller - warn via log.warn
This commit is contained in:
parent
b17a799de6
commit
634102df63
@ -53,7 +53,7 @@ module.exports = class NetworkController extends EventEmitter {
|
||||
lookupNetwork () {
|
||||
// Prevent firing when provider is not defined.
|
||||
if (!this.ethQuery || !this.ethQuery.sendAsync) {
|
||||
return console.warn('NetworkController - lookupNetwork aborted due to missing ethQuery')
|
||||
return log.warn('NetworkController - lookupNetwork aborted due to missing ethQuery')
|
||||
}
|
||||
this.ethQuery.sendAsync({ method: 'net_version' }, (err, network) => {
|
||||
if (err) return this.setNetworkState('loading')
|
||||
|
Loading…
Reference in New Issue
Block a user