return null instead of undefined, if not provider is set

pull/272/merge
Marek Kotewicz 10 years ago
parent d0b6f3663b
commit e5d294df32
  1. 2
      dist/ethereum.js
  2. 2
      dist/ethereum.js.map
  3. 2
      dist/ethereum.min.js
  4. 2
      lib/providermanager.js

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?

File diff suppressed because one or more lines are too long

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…
Cancel
Save