From bc62af8bf52a78bb8866d54531e32fb9ee9fa11a Mon Sep 17 00:00:00 2001 From: gorhill Date: Thu, 14 Jul 2016 13:31:00 -0400 Subject: [PATCH] support redirection of network requests of type "media" --- src/js/redirect-engine.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/js/redirect-engine.js b/src/js/redirect-engine.js index ed0e0723e..29aa788ef 100644 --- a/src/js/redirect-engine.js +++ b/src/js/redirect-engine.js @@ -294,13 +294,14 @@ RedirectEngine.prototype.reFilterParser = /^(?:\|\|([^\/:?#^*]+)|\*)([^$]+)\$([^ RedirectEngine.prototype.supportedTypes = (function() { var types = Object.create(null); - types.stylesheet = 'stylesheet'; + types.font = 'font'; types.image = 'image'; + types.media = 'media'; types.object = 'object'; types.script = 'script'; - types.xmlhttprequest = 'xmlhttprequest'; + types.stylesheet = 'stylesheet'; types.subdocument = 'sub_frame'; - types.font = 'font'; + types.xmlhttprequest = 'xmlhttprequest'; return types; })();