return null instead of undefined, if not provider is set
This commit is contained in:
parent
d0b6f3663b
commit
e5d294df32
|
@ -739,7 +739,7 @@ ProviderManager.prototype.send = function(data) {
|
||||||
|
|
||||||
if (this.provider === undefined) {
|
if (this.provider === undefined) {
|
||||||
console.error('provider is not set');
|
console.error('provider is not set');
|
||||||
return undefined;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: handle error here?
|
//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) {
|
if (this.provider === undefined) {
|
||||||
console.error('provider is not set');
|
console.error('provider is not set');
|
||||||
return undefined;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: handle error here?
|
//TODO: handle error here?
|
||||||
|
|
Loading…
Reference in New Issue