mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-02 02:14:52 +12:00
use pretty 1st-party label only for rendering
This commit is contained in:
parent
5d6e7f9d14
commit
7e038a9433
|
@ -535,7 +535,9 @@ function renderMatrixCellDomain(cell, domain) {
|
|||
.prop('hostname', domain)
|
||||
.addClass(getCellClass(domain, '*'))
|
||||
.contents();
|
||||
contents.nodeAt(0).textContent = punycode.toUnicode(domain);
|
||||
contents.nodeAt(0).textContent = domain === '1st-party' ?
|
||||
firstPartyLabel :
|
||||
punycode.toUnicode(domain);
|
||||
contents.nodeAt(1).textContent = ' ';
|
||||
}
|
||||
|
||||
|
@ -695,7 +697,7 @@ function hostnameCompare(a,b) {
|
|||
/******************************************************************************/
|
||||
|
||||
function makeMatrixGroup0SectionDomain() {
|
||||
return makeMatrixRowDomain(firstPartyLabel).addClass('g0 l1');
|
||||
return makeMatrixRowDomain('1st-party').addClass('g0 l1');
|
||||
}
|
||||
|
||||
function makeMatrixGroup0Section() {
|
||||
|
|
Loading…
Reference in a new issue