return null instead of undefined, if not provider is set
This commit is contained in:
1 parent
d0b6f3663b
commit
e5d294df32
4 files changed
+4
-4
No files matched your search
@@ -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?
|
||||
|
||||
Reference in new issue
Block a user