mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 17:41:03 +01:00
Fix broken row rendering for non-network-based URL
Reported internally by volunteers. Regression from: - https://github.com/gorhill/uBlock/commit/3a564c199260#diff-fd76b4e8f9d7bfb2e5e01510c9457633L367
This commit is contained in:
parent
bc6e585b5d
commit
0627fcfb62
1 changed files with 20 additions and 19 deletions
|
@ -376,29 +376,30 @@ const parseLogEntry = function(details) {
|
||||||
// Cell 3
|
// Cell 3
|
||||||
textContent.push(normalizeToStr(entry.docHostname));
|
textContent.push(normalizeToStr(entry.docHostname));
|
||||||
|
|
||||||
// Cell 4
|
// Cell 4: partyness
|
||||||
if ( entry.realm === 'network' ) {
|
if (
|
||||||
// partyness
|
entry.realm === 'network' &&
|
||||||
if ( typeof entry.domain === 'string' && entry.domain !== '' ) {
|
typeof entry.domain === 'string' &&
|
||||||
let partyness = '';
|
entry.domain !== ''
|
||||||
if ( entry.tabDomain !== undefined ) {
|
) {
|
||||||
if ( entry.tabId < 0 ) {
|
let partyness = '';
|
||||||
partyness += '0,';
|
if ( entry.tabDomain !== undefined ) {
|
||||||
}
|
if ( entry.tabId < 0 ) {
|
||||||
partyness += entry.domain === entry.tabDomain ? '1' : '3';
|
partyness += '0,';
|
||||||
|
}
|
||||||
|
partyness += entry.domain === entry.tabDomain ? '1' : '3';
|
||||||
|
} else {
|
||||||
|
partyness += '?';
|
||||||
|
}
|
||||||
|
if ( entry.docDomain !== entry.tabDomain ) {
|
||||||
|
partyness += ',';
|
||||||
|
if ( entry.docDomain !== undefined ) {
|
||||||
|
partyness += entry.domain === entry.docDomain ? '1' : '3';
|
||||||
} else {
|
} else {
|
||||||
partyness += '?';
|
partyness += '?';
|
||||||
}
|
}
|
||||||
if ( entry.docDomain !== entry.tabDomain ) {
|
|
||||||
partyness += ',';
|
|
||||||
if ( entry.docDomain !== undefined ) {
|
|
||||||
partyness += entry.domain === entry.docDomain ? '1' : '3';
|
|
||||||
} else {
|
|
||||||
partyness += '?';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
textContent.push(partyness);
|
|
||||||
}
|
}
|
||||||
|
textContent.push(partyness);
|
||||||
} else {
|
} else {
|
||||||
textContent.push('');
|
textContent.push('');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue