1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-26 10:01:08 +12:00

punycode scope selector

This commit is contained in:
gorhill 2015-05-11 11:53:02 -04:00
parent 8aaadb8fc0
commit c8f162d0bb

View file

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