1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-02 00:42:45 +01:00

Fix wrongly reported network filter options in logger

Regression from:
- 1e2eb037e5

Related feedback:
- 1e2eb037e5 (commitcomment-43759481)
This commit is contained in:
Raymond Hill 2020-10-31 13:47:35 -04:00
parent aae08d519f
commit 64dc5f7807
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -228,12 +228,12 @@ const toLogDataInternal = function(categoryBits, tokenHash, iunit) {
isRegex: false,
};
filterUnits[iunit].logData(logData);
if ( categoryBits & 0x002 ) {
if ( (categoryBits & Important) !== 0 ) {
logData.options.unshift('important');
}
if ( categoryBits & 0x008 ) {
if ( (categoryBits & ThirdParty) !== 0 ) {
logData.options.unshift('3p');
} else if ( categoryBits & 0x004 ) {
} else if ( (categoryBits & FirstParty) !== 0 ) {
logData.options.unshift('1p');
}
const type = categoryBits & TypeBitsMask;
@ -248,7 +248,7 @@ const toLogDataInternal = function(categoryBits, tokenHash, iunit) {
) {
raw += '*';
}
if ( categoryBits & 0x001 ) {
if ( (categoryBits & AllowAction) !== 0 ) {
raw = '@@' + raw;
}
if ( denyallow.length !== 0 ) {