From 5597d2aed0b05f00383f3e3cd3c10d469d6e7e70 Mon Sep 17 00:00:00 2001 From: chylex <info@chylex.com> Date: Sat, 16 Apr 2016 03:03:48 +0200 Subject: [PATCH] Ignore notifications with 0 characters --- Resources/code.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Resources/code.js b/Resources/code.js index 107b39fb..b1e70eeb 100644 --- a/Resources/code.js +++ b/Resources/code.js @@ -125,7 +125,10 @@ body.children().not("p,div.js-quote-detail").remove(); - $TD.onTweetPopup(html.html(),html.find(".js-tweet-text:first").text().length); // TODO column & remove pic links from text() + var characters = html.find(".js-tweet-text:first").text().length; + if (characters == 0)return; + + $TD.onTweetPopup(html.html(),characters); // TODO column & remove pic links from text() }; //