Browse Source

punycode scope selector

pull/2/head
gorhill 10 years ago
parent
commit
c8f162d0bb
  1. 8
      src/js/popup.js

8
src/js/popup.js

@ -1029,9 +1029,9 @@ function initScopeCell() {
if ( matrixSnapshot.hostname === matrixSnapshot.domain ) { if ( matrixSnapshot.hostname === matrixSnapshot.domain ) {
uDom('#scopeKeySite').css('display', 'none'); uDom('#scopeKeySite').css('display', 'none');
} else { } else {
uDom('#scopeKeySite').text(matrixSnapshot.hostname);
uDom('#scopeKeySite').text(punycode.toUnicode(matrixSnapshot.hostname));
} }
uDom('#scopeKeyDomain').text(matrixSnapshot.domain);
uDom('#scopeKeyDomain').text(punycode.toUnicode(matrixSnapshot.domain));
updateScopeCell(); updateScopeCell();
} }
@ -1039,7 +1039,9 @@ function updateScopeCell() {
uDom('body') uDom('body')
.removeClass('tScopeGlobal tScopeDomain tScopeSite') .removeClass('tScopeGlobal tScopeDomain tScopeSite')
.addClass(getClassFromScope()); .addClass(getClassFromScope());
uDom('#scopeCell').text(matrixSnapshot.scope.replace('*', '\u2217'));
uDom('#scopeCell').text(
punycode.toUnicode(matrixSnapshot.scope).replace('*', '\u2217')
);
} }
/******************************************************************************/ /******************************************************************************/

Loading…
Cancel
Save