From 7e038a9433c558b947957b1a3cebaede01080789 Mon Sep 17 00:00:00 2001 From: gorhill Date: Mon, 3 Nov 2014 20:15:14 -0500 Subject: [PATCH] use pretty 1st-party label only for rendering --- src/js/popup.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/popup.js b/src/js/popup.js index d5866507..d2069555 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -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() {