| Index: lib/abp2blocklist.js |
| diff --git a/lib/abp2blocklist.js b/lib/abp2blocklist.js |
| index 0309dd21bc22fce2d68f896028bfba32c5d2715a..e9bbd1c00ef7826b4b6b0ad48ed12d7889c8a527 100644 |
| --- a/lib/abp2blocklist.js |
| +++ b/lib/abp2blocklist.js |
| @@ -273,7 +273,13 @@ function convertFilterAddRules(rules, filter, action, withResourceTypes) |
| parseDomains(filter.domains, included, excluded); |
| if (withResourceTypes) |
| + { |
| trigger["resource-type"] = getResourceTypes(filter); |
| + |
| + if (trigger["resource-type"].length == 0) |
| + return; |
| + } |
| + |
| if (filter.thirdParty != null) |
| trigger["load-type"] = [filter.thirdParty ? "third-party" : "first-party"]; |