Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/abp2blocklist.js

Issue 29344565: Issue 4072 - Fix typo in domain whitelisting logic (Closed)
Patch Set: Created May 25, 2016, 6:32 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/abp2blocklist.js
diff --git a/lib/abp2blocklist.js b/lib/abp2blocklist.js
index fb90da33463b453806cae4fa5497cb31cef9223c..aa074f5acfaac19b5552a72d8b942b66198441a9 100644
--- a/lib/abp2blocklist.js
+++ b/lib/abp2blocklist.js
@@ -249,7 +249,7 @@ function convertFilterAddRules(rules, filter, action, withResourceTypes)
});
// If the filter contains other supported options we'll need to generate
// further rules for it, but if not we can simply return now.
- if (!(filter.contentType | whitelistableRequestTypes))
+ if (!(filter.contentType & whitelistableRequestTypes))
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld