From 75d9cf3055d9e049cb4b4b08f0b7805f63bdf956 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 26 Nov 2018 12:02:32 -0500 Subject: [PATCH] fix https://github.com/uBlockOrigin/uBlock-issues/issues/313 --- src/js/cosmetic-filtering.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/cosmetic-filtering.js b/src/js/cosmetic-filtering.js index f17981cc6..1b0d608d8 100644 --- a/src/js/cosmetic-filtering.js +++ b/src/js/cosmetic-filtering.js @@ -762,9 +762,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; @@ -775,7 +775,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]);