From c0d40f04441feba4f18598ea6cfa1c33d158913e Mon Sep 17 00:00:00 2001 From: Nick White Date: Sat, 21 May 2011 13:19:00 +0100 Subject: Remove useless alert if no content found --- simplyread.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/simplyread.js b/simplyread.js index 832b3c2..699a0c1 100755 --- a/simplyread.js +++ b/simplyread.js @@ -49,10 +49,7 @@ function simplyread() } } - if (biggest_num == 0) { - alert("Can't find any content"); - return 1; - } + if (biggest_num == 0) return 1; /* save and sanitise content of chosen tag */ var fresh = doc.createElement("div"); -- cgit v1.2.3