aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/main.coffee
diff options
context:
space:
mode:
authorStephen Blott2014-09-05 10:59:20 +0100
committerStephen Blott2014-09-06 12:28:40 +0100
commit643e49aa3109b9a25b38ce5d6b59bb11bc6337b1 (patch)
treefcbfa9c0fe1a2a9e598ff9735301c8eb6c2913ae /background_scripts/main.coffee
parent2f27d4590ba30f5a443aedff12d9611a83a4f771 (diff)
downloadvimium-643e49aa3109b9a25b38ce5d6b59bb11bc6337b1.tar.bz2
Structured passkeys; changes following code review; major rewrite of options.
Diffstat (limited to 'background_scripts/main.coffee')
-rw-r--r--background_scripts/main.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 4e6f406e..352cfa48 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -80,8 +80,8 @@ root.isEnabledForUrl = isEnabledForUrl = (request) ->
passKeys: rule?.passKeys or ""
}
-# Called by the popup UI. If an existing exclusion rule has been changed, then the existing rule is updated.
-# Otherwise, the new rule is added.
+# Called by the popup UI.
+# If the URL pattern matches an existing rule, then the existing rule is updated. Otherwise, a new rule is created.
root.addExclusionRule = (pattern,passKeys) ->
if pattern = pattern.trim()
Exclusions.updateOrAdd({ pattern: pattern, passKeys: passKeys })