summaryrefslogtreecommitdiff
path: root/prefs.js
diff options
context:
space:
mode:
Diffstat (limited to 'prefs.js')
-rw-r--r--prefs.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/prefs.js b/prefs.js
index 2539c3b62..8622526dd 100644
--- a/prefs.js
+++ b/prefs.js
@@ -282,6 +282,9 @@ function addFeed() {
if (link.value.length == 0) {
alert("Error: No feed URL given.");
+ } else if (link.value.match("http://") == null &&
+ link.value.match("https://") == null) {
+ alert("Error: Invalid feed URL.");
} else {
notify("Adding feed...");