forked from cerc-io/plugeth
return null instead of undefined, if not provider is set
This commit is contained in:
parent
d0b6f3663b
commit
e5d294df32
2
dist/ethereum.js
vendored
2
dist/ethereum.js
vendored
@ -739,7 +739,7 @@ ProviderManager.prototype.send = function(data) {
|
||||
|
||||
if (this.provider === undefined) {
|
||||
console.error('provider is not set');
|
||||
return undefined;
|
||||
return null;
|
||||
}
|
||||
|
||||
//TODO: handle error here?
|
||||
|
2
dist/ethereum.js.map
vendored
2
dist/ethereum.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/ethereum.min.js
vendored
2
dist/ethereum.min.js
vendored
File diff suppressed because one or more lines are too long
@ -70,7 +70,7 @@ ProviderManager.prototype.send = function(data) {
|
||||
|
||||
if (this.provider === undefined) {
|
||||
console.error('provider is not set');
|
||||
return undefined;
|
||||
return null;
|
||||
}
|
||||
|
||||
//TODO: handle error here?
|
||||
|
Loading…
Reference in New Issue
Block a user