| Index: background.js |
| diff --git a/background.js b/background.js |
| index cf1e2ea081f70101fdb8f2a21298466478c99124..00a66ecbed07ab0390a3a59941486cd2105e9e9f 100644 |
| --- a/background.js |
| +++ b/background.js |
| @@ -20,6 +20,7 @@ with(require("filterClasses")) |
| this.Filter = Filter; |
| this.BlockingFilter = BlockingFilter; |
| this.WhitelistFilter = WhitelistFilter; |
| + this.RegExpFilter = RegExpFilter; |
| } |
| with(require("subscriptionClasses")) |
| { |
| @@ -340,7 +341,7 @@ ext.onMessage.addListener(function (msg, sender, sendResponse) |
| { |
| var url = new URL(msg.urls[i], msg.baseURL); |
| var filter = defaultMatcher.matchesAny( |
| - stringifyURL(url), msg.mediatype, |
| + stringifyURL(url), RegExpFilter.toTypeMask(msg.mediatype), |
|
Sebastian Noack
2015/07/09 15:28:52
This operation can be done outside of the loop.
kzar
2015/07/12 14:28:00
Done.
|
| documentHost, isThirdParty(url, documentHost) |
| ); |