misc: only use console.log if it's available

This commit is contained in:
Frédéric Péters 2015-10-26 15:23:30 +01:00
parent e97b4d6233
commit 32a22ed1bf
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ $(function() {
dataType: 'jsonp',
crossDomain: true,
success: function(data) { $(elem).html(data.content); },
error: function(error) { console.log('bouh', error); }
error: function(error) { console.log && console.log('bouh', error); }
});
});
});