Fix minor logger quirks as per feedback

This commit is contained in:
Raymond Hill 2019-01-15 15:12:47 -05:00
parent 84818fcd84
commit 86e5d0384c
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 13 additions and 2 deletions

View File

@ -474,7 +474,7 @@ body[dir="rtl"] #modalOverlay > div > div:nth-of-type(2) {
}
#netFilteringDialog {
font-size: 90%;
font-size: 95%;
}
#netFilteringDialog a {
text-decoration: none;
@ -871,7 +871,7 @@ body[dir="rtl"] #loggerSettingsDialog ul {
background-color: lightblue;
}
#loggerExportDialog .output {
font: x-small mono;
font: smaller mono;
height: 60vh;
padding: 0.5em;
white-space: pre;

View File

@ -193,6 +193,17 @@ const LogEntry = function(details) {
this[prop] = details[prop];
}
}
// TODO: Shouldn't this be done in µBlock.filteringContext?
// Need to evaluate.
if ( this.tabDomain === '' ) {
this.tabDomain = this.tabHostname;
}
if ( this.docDomain === '' ) {
this.docDomain = this.docHostname;
}
if ( this.domain === '' ) {
this.domain = this.hostname;
}
};
LogEntry.prototype = {
dead: false,