forked from GitHub/dbot
fix for the bug with infostring i introduced fixing undefinedxundefined
This commit is contained in:
parent
90d34f3aa4
commit
11b23ffc85
@ -11,7 +11,7 @@ var imgur = function(dbot) {
|
|||||||
this.internalAPI = {
|
this.internalAPI = {
|
||||||
'infoString': function(imgData) {
|
'infoString': function(imgData) {
|
||||||
info = '';
|
info = '';
|
||||||
if(imgData && _.has(imgData, 'data') && !_.isUndefined(imgData.type)) {
|
if(imgData && _.has(imgData, 'data') && !_.isUndefined(imgData.data.type)) {
|
||||||
imgData = imgData.data;
|
imgData = imgData.data;
|
||||||
if(imgData.title) {
|
if(imgData.title) {
|
||||||
info += imgData.title + ' - ';
|
info += imgData.title + ' - ';
|
||||||
|
Loading…
Reference in New Issue
Block a user