mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-15 15:32:28 +02:00
Fix wrongly reported network filter options in logger
Regression from: -1e2eb037e5
Related feedback: -1e2eb037e5 (commitcomment-43759481)
This commit is contained in:
parent
aae08d519f
commit
64dc5f7807
@ -228,12 +228,12 @@ const toLogDataInternal = function(categoryBits, tokenHash, iunit) {
|
|||||||
isRegex: false,
|
isRegex: false,
|
||||||
};
|
};
|
||||||
filterUnits[iunit].logData(logData);
|
filterUnits[iunit].logData(logData);
|
||||||
if ( categoryBits & 0x002 ) {
|
if ( (categoryBits & Important) !== 0 ) {
|
||||||
logData.options.unshift('important');
|
logData.options.unshift('important');
|
||||||
}
|
}
|
||||||
if ( categoryBits & 0x008 ) {
|
if ( (categoryBits & ThirdParty) !== 0 ) {
|
||||||
logData.options.unshift('3p');
|
logData.options.unshift('3p');
|
||||||
} else if ( categoryBits & 0x004 ) {
|
} else if ( (categoryBits & FirstParty) !== 0 ) {
|
||||||
logData.options.unshift('1p');
|
logData.options.unshift('1p');
|
||||||
}
|
}
|
||||||
const type = categoryBits & TypeBitsMask;
|
const type = categoryBits & TypeBitsMask;
|
||||||
@ -248,7 +248,7 @@ const toLogDataInternal = function(categoryBits, tokenHash, iunit) {
|
|||||||
) {
|
) {
|
||||||
raw += '*';
|
raw += '*';
|
||||||
}
|
}
|
||||||
if ( categoryBits & 0x001 ) {
|
if ( (categoryBits & AllowAction) !== 0 ) {
|
||||||
raw = '@@' + raw;
|
raw = '@@' + raw;
|
||||||
}
|
}
|
||||||
if ( denyallow.length !== 0 ) {
|
if ( denyallow.length !== 0 ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user