diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index 8fea9b06a..0f792cc40 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -223,9 +223,6 @@ const toLogDataInternal = function(categoryBits, tokenHash, iunit) { const domains = []; const logData = { pattern, regex, domains, options, isRegex: false }; filterUnits[iunit].logData(logData); - if ( categoryBits & 0x001 ) { - logData.pattern.unshift('@@'); - } if ( categoryBits & 0x002 ) { logData.options.unshift('important'); } @@ -246,6 +243,9 @@ const toLogDataInternal = function(categoryBits, tokenHash, iunit) { ) { raw += '*'; } + if ( categoryBits & 0x001 ) { + raw = '@@' + raw; + } if ( domains.length !== 0 ) { options.push(`domain=${domains.join('|')}`); }