This commit is contained in:
gorhill 2014-07-31 00:17:18 -04:00
parent 3d461cf7ed
commit 211b281335
1 changed files with 5 additions and 3 deletions

View File

@ -847,9 +847,11 @@ FilterParser.prototype.parseOptType = function(raw, not) {
var type = this.toNormalizedType[raw];
if ( not ) {
for ( var k in typeNameToTypeValue ) {
if ( k === type ) {
continue;
}
if ( k === type ) { continue; }
// https://github.com/gorhill/uBlock/issues/121
// `popup` is a special type, it cannot be set for filter intended
// for real net request types
if ( k === 'popup' ) { continue; }
this.types.push(typeNameToTypeValue[k]);
}
} else {