aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUncleBill2013-04-15 23:59:18 +0800
committerUncleBill2013-04-15 23:59:18 +0800
commitcb105bc799f112e1b36930d7add73a343c3b4a99 (patch)
tree4e1f88098a18fefa753359f288450a590d7fdd03
parent8fec3a8a1418c548a158144f7abadba27594ac32 (diff)
downloadvimium-cb105bc799f112e1b36930d7add73a343c3b4a99.tar.bz2
fix issue #772
-rw-r--r--CREDITS1
-rw-r--r--background_scripts/main.coffee2
2 files changed, 3 insertions, 0 deletions
diff --git a/CREDITS b/CREDITS
index 36e75f47..605860fe 100644
--- a/CREDITS
+++ b/CREDITS
@@ -39,5 +39,6 @@ Contributors:
Wang Ning <daning106@gmail.com> (github:daning)
Werner Laurensse (github: ab3)
Timo Sand <timo.j.sand@gmail.com> (github: deiga)
+ Shiyong Chen <billbill290@gmail.com> (github: UncleBill)
Feel free to add real names in addition to GitHub usernames.
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index c750162e..14e08533 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -90,6 +90,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)