Index: lib/filterListener.js |
=================================================================== |
--- a/lib/filterListener.js |
+++ b/lib/filterListener.js |
@@ -138,17 +138,17 @@ |
*/ |
function addFilter(filter) |
{ |
if (!(filter instanceof ActiveFilter) || filter.disabled) |
return; |
let hasEnabled = false; |
let allowSnippets = false; |
- for (let subscription of filter.subscriptions) |
+ for (let subscription of filter.subscriptions()) |
{ |
if (!subscription.disabled) |
{ |
hasEnabled = true; |
// Allow snippets to be executed only by the circumvention lists or the |
// user's own filters. |
if (subscription.type == "circumvention" || |
@@ -185,17 +185,17 @@ |
function removeFilter(filter) |
{ |
if (!(filter instanceof ActiveFilter)) |
return; |
if (!filter.disabled) |
{ |
let hasEnabled = false; |
- for (let subscription of filter.subscriptions) |
+ for (let subscription of filter.subscriptions()) |
{ |
if (!subscription.disabled) |
{ |
hasEnabled = true; |
break; |
} |
} |
if (hasEnabled) |