Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Commit

Permalink
use pretty 1st-party label only for rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Nov 4, 2014
1 parent 5d6e7f9 commit 7e038a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ' ';
}

Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 7e038a9

Please sign in to comment.