aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorPhil Crosby2013-05-07 09:40:26 -0700
committerPhil Crosby2013-05-07 09:40:26 -0700
commitc7180d197a88b670da694cb9502441f2edab51f0 (patch)
tree18471811579f196a97879a2eec41ceb2e44074a1 /background_scripts
parentc4d4811fbab14ce14c908ec0806bc92ca4aa7a4c (diff)
downloadvimium-c7180d197a88b670da694cb9502441f2edab51f0.tar.bz2
Tweak to make if statement positively formed
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 54bf2882..71f963b2 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -84,7 +84,7 @@ root.addExcludedUrl = (url) ->
return unless url = url.trim()
excludedUrls = Settings.get("excludedUrls")
- return unless excludedUrls.indexOf(url) < 0
+ return if excludedUrls.indexOf(url) >= 0
excludedUrls += "\n" + url
Settings.set("excludedUrls", excludedUrls)