Index: messageResponder.js |
=================================================================== |
--- a/messageResponder.js |
+++ b/messageResponder.js |
@@ -37,16 +37,23 @@ |
const info = require("info"); |
const { |
Subscription, |
DownloadableSubscription, |
SpecialSubscription |
} = require("subscriptionClasses"); |
+ port.on("types.get", (message, sender) => |
+ { |
+ let filterTypes = Array.from(require("requestBlocker").filterTypes); |
+ filterTypes.push(...filterTypes.splice(filterTypes.indexOf("OTHER"), 1)); |
+ return filterTypes; |
+ }); |
+ |
// Some modules doesn't exist on Firefox. Moreover, |
// require() throws an exception on Firefox in that case. |
// However, try/catch causes the whole function to to be |
// deoptimized on V8. So we wrap it into another function. |
function tryRequire(module) |
{ |
try |
{ |