From f94067635713b93c83f8abbf761428918c3d06d0 Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 22 Feb 2016 13:58:47 -0800 Subject: [PATCH] Ignore attempts to post empty debug logs Fixes #697 // FREEBIE --- js/views/debug_log_view.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/views/debug_log_view.js b/js/views/debug_log_view.js index ac9e086a..9e42a1f1 100644 --- a/js/views/debug_log_view.js +++ b/js/views/debug_log_view.js @@ -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);