diff --git a/src/js/dynamic-net-filtering.js b/src/js/dynamic-net-filtering.js index aeb488b36..53d9885b6 100644 --- a/src/js/dynamic-net-filtering.js +++ b/src/js/dynamic-net-filtering.js @@ -38,13 +38,11 @@ var Matrix = function() { /******************************************************************************/ -var supportedTypes = { +var supportedDynamicTypes = { '*': true, 'inline-script': true, - 'script': true, '1p-script': true, '3p-script': true, - 'sub_frame': true, '3p-frame': true, 'image': true }; @@ -261,11 +259,6 @@ Matrix.prototype.evaluateCellZY = function(srcHostname, desHostname, type) { } // Any destination + specific-type - if ( supportedTypes.hasOwnProperty(type) === false ) { - this.type = ''; - return this; - } - this.y = '*'; if ( type === 'script' ) { @@ -274,6 +267,12 @@ Matrix.prototype.evaluateCellZY = function(srcHostname, desHostname, type) { type = '3p-frame'; } + // Is this a type suitable for dynamic filtering purpose? + if ( supportedDynamicTypes.hasOwnProperty(type) === false ) { + this.type = ''; + return this; + } + this.type = type; this.r = this.evaluateCellZ(srcHostname, '*', type);