From cb105bc799f112e1b36930d7add73a343c3b4a99 Mon Sep 17 00:00:00 2001 From: UncleBill Date: Mon, 15 Apr 2013 23:59:18 +0800 Subject: fix issue #772 --- CREDITS | 1 + background_scripts/main.coffee | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CREDITS b/CREDITS index 36e75f47..605860fe 100644 --- a/CREDITS +++ b/CREDITS @@ -39,5 +39,6 @@ Contributors: Wang Ning (github:daning) Werner Laurensse (github: ab3) Timo Sand (github: deiga) + Shiyong Chen (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) -- cgit v1.2.3