From 9e89dd4f2613e36b895a4f488796015db44015e3 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 22 Jan 2019 06:13:30 -0500 Subject: [PATCH] Fix missing partyness in logger when empty domain in resource URL --- src/js/logger-ui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/logger-ui.js b/src/js/logger-ui.js index 712b56c66..e9ab744f7 100644 --- a/src/js/logger-ui.js +++ b/src/js/logger-ui.js @@ -196,13 +196,13 @@ const LogEntry = function(details) { // TODO: Shouldn't this be done in µBlock.filteringContext? // Need to evaluate. if ( this.tabDomain === '' ) { - this.tabDomain = this.tabHostname; + this.tabDomain = this.tabHostname || ''; } if ( this.docDomain === '' ) { - this.docDomain = this.docHostname; + this.docDomain = this.docHostname || ''; } if ( this.domain === '' ) { - this.domain = this.hostname; + this.domain = details.hostname || ''; } }; LogEntry.prototype = {