mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
this fixes #121
This commit is contained in:
parent
3d461cf7ed
commit
211b281335
@ -847,9 +847,11 @@ FilterParser.prototype.parseOptType = function(raw, not) {
|
|||||||
var type = this.toNormalizedType[raw];
|
var type = this.toNormalizedType[raw];
|
||||||
if ( not ) {
|
if ( not ) {
|
||||||
for ( var k in typeNameToTypeValue ) {
|
for ( var k in typeNameToTypeValue ) {
|
||||||
if ( k === type ) {
|
if ( k === type ) { continue; }
|
||||||
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]);
|
this.types.push(typeNameToTypeValue[k]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user