Index: lib/filterClasses.js |
=================================================================== |
--- a/lib/filterClasses.js |
+++ b/lib/filterClasses.js |
@@ -901,19 +901,24 @@ |
* @augments RegExpFilter |
*/ |
function BlockingFilter(text, regexpSource, contentType, matchCase, domains, |
thirdParty, sitekeys, collapse, csp, rewrite) |
{ |
RegExpFilter.call(this, text, regexpSource, contentType, matchCase, domains, |
thirdParty, sitekeys); |
- this.collapse = collapse; |
- this.csp = csp; |
- this.rewrite = rewrite; |
+ if (collapse != null) |
+ this.collapse = collapse; |
+ |
+ if (csp != null) |
+ this.csp = csp; |
+ |
+ if (rewrite != null) |
+ this.rewrite = rewrite; |
} |
exports.BlockingFilter = BlockingFilter; |
BlockingFilter.prototype = extend(RegExpFilter, { |
type: "blocking", |
/** |
* Defines whether the filter should collapse blocked content. |