Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Dec 4, 2018
1 parent 1fa3794 commit 5cbd307
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/cosmetic-filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -824,9 +824,9 @@ FilterContainer.prototype.fromCompiledContent = function(reader, options) {
if ( bucket === undefined ) {
db.simple.add(args[1]);
} else if ( Array.isArray(bucket) ) {
bucket.push(args[1]);
bucket.push(db.prefix + args[1]);
} else {
db.complex.set(args[1], [ bucket, args[1] ]);
db.complex.set(args[1], [ bucket, db.prefix + args[1] ]);
}
break;

Expand All @@ -837,7 +837,7 @@ FilterContainer.prototype.fromCompiledContent = function(reader, options) {
bucket = db.complex.get(args[1]);
if ( bucket === undefined ) {
if ( db.simple.has(args[1]) ) {
db.complex.set(args[1], [ args[1], args[2] ]);
db.complex.set(args[1], [ db.prefix + args[1], args[2] ]);
} else {
db.complex.set(args[1], args[2]);
db.simple.add(args[1]);
Expand Down

0 comments on commit 5cbd307

Please sign in to comment.