fix a generic exception preventing a lowly-generic complex cosmetic filter from being applied

This commit is contained in:
Raymond Hill 2018-09-09 13:15:43 -04:00
parent 06fe7e6871
commit d5ddf837fa
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 0 additions and 15 deletions

View File

@ -493,21 +493,6 @@ FilterContainer.prototype.freeze = function() {
this.highlyGeneric.simple.dict.size !== 0 ||
this.highlyGeneric.complex.dict.size !== 0;
if ( this.genericDonthideSet.size !== 0 ) {
for ( let selector of this.genericDonthideSet ) {
let type = selector.charCodeAt(0);
if ( type === 0x23 /* '#' */ ) {
this.lowlyGeneric.id.simple.delete(selector.slice(1));
} else if ( type === 0x2E /* '.' */ ) {
this.lowlyGeneric.cl.simple.delete(selector.slice(1));
}
// TODO:
// this.lowlyGeneric.id.complex.delete(selector);
// this.lowlyGeneric.cl.complex.delete(selector);
this.highlyGeneric.simple.dict.delete(selector);
this.highlyGeneric.complex.dict.delete(selector);
}
}
this.highlyGeneric.simple.str = Array.from(this.highlyGeneric.simple.dict).join(',\n');
this.highlyGeneric.simple.mru.reset();
this.highlyGeneric.complex.str = Array.from(this.highlyGeneric.complex.dict).join(',\n');