support redirection of network requests of type "media"

This commit is contained in:
gorhill 2016-07-14 13:31:00 -04:00
parent dcb6e87c1f
commit bc62af8bf5
1 changed files with 4 additions and 3 deletions

View File

@ -294,13 +294,14 @@ RedirectEngine.prototype.reFilterParser = /^(?:\|\|([^\/:?#^*]+)|\*)([^$]+)\$([^
RedirectEngine.prototype.supportedTypes = (function() { RedirectEngine.prototype.supportedTypes = (function() {
var types = Object.create(null); var types = Object.create(null);
types.stylesheet = 'stylesheet'; types.font = 'font';
types.image = 'image'; types.image = 'image';
types.media = 'media';
types.object = 'object'; types.object = 'object';
types.script = 'script'; types.script = 'script';
types.xmlhttprequest = 'xmlhttprequest'; types.stylesheet = 'stylesheet';
types.subdocument = 'sub_frame'; types.subdocument = 'sub_frame';
types.font = 'font'; types.xmlhttprequest = 'xmlhttprequest';
return types; return types;
})(); })();