Ignore attempts to post empty debug logs

Fixes #697

// FREEBIE
This commit is contained in:
lilia 2016-02-22 13:58:47 -08:00
parent a962d97bfb
commit f940676357

View file

@ -29,7 +29,11 @@
},
submit: function(e) {
e.preventDefault();
console.post(this.$('textarea').val()).then(function(url) {
var log = this.$('textarea').val();
if (log.length === 0) {
return;
}
console.post(log).then(function(url) {
this.$('.loading').removeClass('loading');
var link = this.$('.result').find('a');
link.attr('href', url).text(url);