aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee2
1 files changed, 2 insertions, 0 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 6d696b49..54bf2882 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -84,6 +84,8 @@ root.addExcludedUrl = (url) ->
return unless url = url.trim()
excludedUrls = Settings.get("excludedUrls")
+ return unless excludedUrls.indexOf(url) < 0
+
excludedUrls += "\n" + url
Settings.set("excludedUrls", excludedUrls)