From cd237ed3e12d00b2c416c8cd6e8c5cbf2ea78194 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 20 Jul 2021 11:22:33 -0400 Subject: [PATCH] Fix rendering of punycoded hostname in popup panel Regression from: - https://github.com/gorhill/uBlock/commit/75deadd31ebe6f42ede1b789013d2ac966c9f861 --- src/js/popup-fenix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/popup-fenix.js b/src/js/popup-fenix.js index 49834dc90..d0cf5c926 100644 --- a/src/js/popup-fenix.js +++ b/src/js/popup-fenix.js @@ -378,7 +378,7 @@ const buildAllFirewallRows = function() { const hnDetails = hostnameDict[des] || {}; const isDomain = des === hnDetails.domain; - const prettyDomainName = des.startsWith('xn--') + const prettyDomainName = des.includes('xn--') ? punycode.toUnicode(des) : des; const isPunycoded = prettyDomainName !== des;