From 643e49aa3109b9a25b38ce5d6b59bb11bc6337b1 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Fri, 5 Sep 2014 10:59:20 +0100 Subject: Structured passkeys; changes following code review; major rewrite of options. --- background_scripts/main.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'background_scripts/main.coffee') 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 }) -- cgit v1.2.3