summaryrefslogtreecommitdiff
path: root/simplyread.js
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-05-21 13:19:00 +0100
committerNick White <git@njw.me.uk>2011-05-21 13:19:00 +0100
commitc0d40f04441feba4f18598ea6cfa1c33d158913e (patch)
tree5990cef9f2327cc56a4725e53dcaddc2b0e4621b /simplyread.js
parentbf340e9f5ed22058877af1878c85c16de1dd8904 (diff)
Remove useless alert if no content found
Diffstat (limited to 'simplyread.js')
-rwxr-xr-xsimplyread.js5
1 files changed, 1 insertions, 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");