1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-07 11:22:38 +01:00

Fix rendering of punycoded hostname in popup panel

Regression from:
- 75deadd31e
This commit is contained in:
Raymond Hill 2021-07-20 11:22:33 -04:00
parent 0c66680a2c
commit cd237ed3e1
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -378,7 +378,7 @@ const buildAllFirewallRows = function() {
const hnDetails = hostnameDict[des] || {}; const hnDetails = hostnameDict[des] || {};
const isDomain = des === hnDetails.domain; const isDomain = des === hnDetails.domain;
const prettyDomainName = des.startsWith('xn--') const prettyDomainName = des.includes('xn--')
? punycode.toUnicode(des) ? punycode.toUnicode(des)
: des; : des;
const isPunycoded = prettyDomainName !== des; const isPunycoded = prettyDomainName !== des;