Fix missing partyness in logger when empty domain in resource URL

This commit is contained in:
Raymond Hill 2019-01-22 06:13:30 -05:00
parent a668893427
commit 9e89dd4f26
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 3 additions and 3 deletions

View File

@ -196,13 +196,13 @@ const LogEntry = function(details) {
// TODO: Shouldn't this be done in µBlock.filteringContext? // TODO: Shouldn't this be done in µBlock.filteringContext?
// Need to evaluate. // Need to evaluate.
if ( this.tabDomain === '' ) { if ( this.tabDomain === '' ) {
this.tabDomain = this.tabHostname; this.tabDomain = this.tabHostname || '';
} }
if ( this.docDomain === '' ) { if ( this.docDomain === '' ) {
this.docDomain = this.docHostname; this.docDomain = this.docHostname || '';
} }
if ( this.domain === '' ) { if ( this.domain === '' ) {
this.domain = this.hostname; this.domain = details.hostname || '';
} }
}; };
LogEntry.prototype = { LogEntry.prototype = {